Thursday, July 9, 2015

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’);

No comments: