MySQL enumeration data type enum
Select a value from the collection as data (single selection)
MySQL When managing enumerations, they are managed through integers. The first value is 1, the second value is 2, and so on. Enumeration values are stored in the database as integer numbers. The enumeration occupies two bytes in length and can write up to 65535 enumeration values
Advantages of enumeration:
1. Restrictions
2. Savings Space
3. Fast running speed
The above is the detailed content of What are the advantages of the MySQL enumeration data type enum?. For more information, please follow other related articles on the PHP Chinese website!