WHAT ARE ENUMS USED FOR IN MYSQL?

Amit Singh

Total Post:565

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

    Post:565

    Points:2825
    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!