Use the enum field of mysql with caution, and use the mysqlenum field with caution.
The PHP low-level programming team looks at this issue as follows. I hope to objectively understand the advantages and disadvantages of this enum field:
YAN Ge's
PHP's low-level programming brother came to look at this problem. I wrote the following transcript and expected to objectively understand the advantages and disadvantages of this enum field: Yi's opinion: enum has advantages. But I personally think..
Background: currently, tinyint is widely used for enum. is enum useless? The PHP low-level programming team looks at this issue as follows. I hope to objectively understand the advantages and disadvantages of this enum field:
Yan Ge's point of view:
Usage and difference of the set and enum types in mysql
Usage and difference of the set and enum types in mysql
In mysql, both enum and set are of the string type and can only be set,
The difference is that set can take multiple values, and enum
In my past experience, if I had to decide whether to use the enum data type of mysql, I would give up ENUM () and replace it with tinyint without thinking about it, the reason is what scenarios I have used before and are suitable for use.
In my past
PHP low-level programming Brothers to look at this problem, I make the following statement, I hope to be able to objectively understand the advantages and disadvantages of this enum field:
Fat brother Point of view:An enum has advantages. But
Detailed explanations of ENUM types in MySQLEnum typeAn ENUM is a string object whose value is usually selected from a list of allowed values, which is explicitly enumerated in the column specification when the table is created.A value can also be
Understanding MySQL-index and optimization summary, mysql Index Summary
Preface: indexes have a crucial impact on the query speed. Understanding indexes is also the starting point for optimizing database performance. Consider the following: Assume
Understanding MySQL-index and optimization is at the beginning: indexes have a crucial impact on the query speed. understanding indexes is also the starting point for database performance tuning. Consider the following: assume that a table in the
ENUMis a string object whose value is usually selected from a list of allowed values, which is explicitly enumerated in the column specification when the table is created.In some of the following cases, the value can also be an empty string ( "" )
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.