Interview Questions

What are ENUMs used for in MySQL?

MySQL and SQL


(Continued from previous question...)

What are ENUMs used for in MySQL?

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

(Continued on next question...)

Other Interview Questions