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
This article shares the specific code for JavaScr...
Basic Introduction In the previous article, we in...
I have encountered many problems in learning Dock...
I haven't used mysql on my computer for a lon...
Table of contents Preface π Start researching π±βπ...
The implementation idea of ββthe javascript game ...
If we want to perform batch operations on a type ...
Table of contents 1. MHA 1. Concept 2. Compositio...
1. Only Chinese characters can be input and pasted...
Preface In MySQL, we can use the EXPLAIN command ...
Table of contents Overview 1. Develop the require...
This tutorial shares the process of manually inst...
MySQL foreign key constraint (FOREIGN KEY) is a s...
When we add an svg image to display, react prompt...
Postfix is ββa free and open source MTA (Mail Tra...