gpt4 book ai didi

mysql - 大小写在 MySQL 中重要吗?

转载 作者:可可西里 更新时间:2023-11-01 07:05:26 24 4
gpt4 key购买 nike

我找不到关于 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 - 大小写在 MySQL 中重要吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13734469/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com