数据库
首页 > 数据库> > 资本化在mysql中是否重要

资本化在mysql中是否重要

作者:互联网

我找不到关于mysql查询的哪个部分区分大小写的参考.

是否概述了资本化的重要性?

具体来说,这些都是区分大小写的:

>数据库名称
>表名
>列名称

它与操作系统有关吗?配置?还是其他一些因素组合?

解决方法:

In MySQL, databases correspond to directories within the data directory. Each table within a database corresponds to at least one file within the database directory (and possibly more, depending on the storage engine). Consequently, the case sensitivity of the underlying operating system plays a part in the case sensitivity of database and table names. This means database and table names are not case sensitive in Windows, and case sensitive in most varieties of Unix.

.

The lower_case_table_names system variable also affects how the server handles identifier case sensitivity

您可以阅读有关主题here的更多信息.

标签:mysql,capitalization
来源: https://codeday.me/bug/20190625/1287063.html