Home > DeveloperSection > Interviews > What are ENUMs used for in MySQL?

Posted on    March-17-2011 12:00 AM

 MYSQL MYSQL 
Ratings:
 1 Answer(s)
  1016  View(s)
Rate this:

Amit Singh

Total Post:565

Points:2825
Posted on    March-17-2011 12:00 AM

You can limit the possible values that go into the table. CREATE TABLE months (month ENUM ‘January’, ‘February’, ‘March’,…); INSERT months VALUES (’April’);

Don't want to miss updates? Please click the below button!

Follow MindStick