开发者

Why are MySQL columns case-insensitive?

开发者 https://www.devze.com 2023-03-23 01:39 出处:网络
In MySQL, table names开发者_JAVA技巧 are case-sensitive but column names aren\'t. What\'s thereason for this decision?

In MySQL, table names开发者_JAVA技巧 are case-sensitive but column names aren't.

What's the reason for this decision?

Isn't it better to stick to one convention for both?


Yes.

Some storage engines use one or more files for a table, with as filename the tablename.

Certain operating systems (Windows) are case-insensitive for files, and others (unix) are case-sensitive.

Set the lower_case_table_names variable different from 0 to disable case sensitivity, and read more about Identifier case sensitivity here

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号