For this reason, Alibaba's regulations require:
Therefore, no uppercase letters are allowed in database names, table names, and field names to avoid unnecessary trouble. MySQL case sensitivity is controlled by parametersThere are two parameters related to MySQL case-sensitivity configuration, lower_case_file_system and lower_case_table_names. To view the current case-sensitive configuration of MySQL, you can use the following statement show global variables like '%lower_case%'; +------------------------+-------+ | Variable_name | Value | +------------------------+-------+ | lower_case_file_system | ON | | lower_case_table_names | 0 | +------------------------+-------+ The parameters are described as follows: 1.lower_case_file_system, indicating whether the current system file is case sensitive, is a read-only parameter and cannot be modified. ON is case-insensitive, OFF is case-sensitive.
2.lower_case_table_names, indicates whether the table name is case sensitive, which can be modified. There are three parameters: 0, 1, and 2.
How to set MySQL case sensitivityModify the my.cnf file in Linux system and the my.ini file in Windows system, and add or modify the following content. lower_case_table_names = 0 or lower_case_table_names = 1 Then restart the MySQL service for the changes to take effect. Development Notes
SummarizeDue to the inconsistency of case-sensitivity default settings due to different operating systems, we must pay attention to it during development and develop a strict awareness that all SQL statements should use lowercase letters to avoid meaningless pitfalls. The above are the details of the precautions for MySQL case sensitivity. For more information about MySQL case sensitivity, please pay attention to other related articles on 123WORDPRESS.COM! You may also be interested in:
|
<<: Flash embedded in HTML Solution for embedding Flash files in HTML web page code (Part 2)
>>: How to use environment variables in nginx configuration file
The Raspberry Pi model is 4b, 1G RAM. The system ...
This article shares with you how to use Vue to im...
Table of contents 1. Regular expression creation ...
I often see some circular wave graphics on mobile...
Grouping and linking in MYSQL are the two most co...
Table of contents background Server Dependencies ...
The differences among execute, executeUpdate, and...
Replication is to transfer the DDL and DML operat...
Preface Recently, many new colleagues have asked ...
Vue stores storage with Boolean values I encounte...
The time of VM Ware virtual machine centos is inc...
Like means "like" in Chinese, but when ...
Table of contents 1. What is Set 2. Set Construct...
In the Linux system, in addition to various accou...
Table of contents 1. Follow the wizard to create ...