WHAT ARE ENUMS USED FOR IN MYSQL?

Amit Singh

Total Post:562

Points:2810
Posted by  Amit Singh
MYSQL 
 1263  View(s)
Ratings:
Rate this:
  1. Amit Singh

    Post:562

    Points:2810
    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’);

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!