Skip to content

Commit

Permalink
mysql-compatibility: refined descriptions about lower_case_table_names (
Browse files Browse the repository at this point in the history
  • Loading branch information
hfxsd authored Jan 10, 2023
1 parent 326857d commit 4f8acb6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mysql-compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,9 @@ TiDB 支持大部分 [SQL 模式](/sql-mode.md)。不支持的 SQL 模式如下
- `lower_case_table_names`
+ TiDB 默认:`2`,且仅支持设置该值为 `2`
+ MySQL 默认如下:
- Linux 系统中该值为 `0`
- Windows 系统中该值为 `1`
- macOS 系统中该值为 `2`
- Linux 系统中该值为 `0`,表示表名和数据库名按照在 `CREATE TABLE``CREATE DATABASE` 语句中指定的字母大小写存储在磁盘上,且名称比较时区分大小写。
- Windows 系统中该值为 `1`,表示表名按照小写字母存储在磁盘上,名称比较时不区分大小写。MySQL 在存储和查询时将所有表名转换为小写。该行为也适用于数据库名称和表的别名。
- macOS 系统中该值为 `2`,表示表名和数据库名按照在 `CREATE TABLE``CREATE DATABASE` 语句中指定的字母大小写存储在磁盘上,但 MySQL 在查询时将它们转换为小写。名称比较时不区分大小写。

- `explicit_defaults_for_timestamp`
+ TiDB 默认:`ON`,且仅支持设置该值为 `ON`
Expand Down

0 comments on commit 4f8acb6

Please sign in to comment.