Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enum type with values containing spaces on it

Tags:

enums

mysql

Enum values can contain spaces on it?

For example ENUM('item1','the item2','item 3').

It's allowed?

I'm using MySql.

like image 280
Sein Kraft Avatar asked Oct 11 '10 14:10

Sein Kraft


1 Answers

Why not ? String with space remains string ! http://dev.mysql.com/doc/refman/5.0/en/enum.html

like image 59
MatTheCat Avatar answered Sep 23 '22 01:09

MatTheCat