Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*: update keyword auto_increment to CAPS #2181

Merged
2 changes: 1 addition & 1 deletion dev/how-to/get-started/data-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ TiDB Data Migration 平台由 3 部分组成:DM-master、DM-worker 和 dmctl
do
mysql -h 127.0.0.1 -P "$((3306+i))" -u root <<EoSQL
create database dmtest1;
create table dmtest1.t1 (id bigint unsigned not null auto_increment primary key, c char(32), port int);
create table dmtest1.t1 (id bigint unsigned not null AUTO_INCREMENT primary key, c char(32), port int);
EoSQL
done
```
Expand Down
2 changes: 1 addition & 1 deletion dev/how-to/get-started/tidb-binlog.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ Check Table Before Drop: false
{{< copyable "sql" >}}

```sql
create table t1 (id int unsigned not null auto_increment primary key);
create table t1 (id int unsigned not null AUTO_INCREMENT primary key);
```

```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ TiDB 默认会在建表时为新表分裂 Region。开启该变量后,会在

默认值:0

这个变量用来控制是否允许通过 `ALTER TABLE MODIFY` 或 `ALTER TABLE CHANGE` 来移除某个列的 `auto_increment` 属性。默认为不允许。
这个变量用来控制是否允许通过 `ALTER TABLE MODIFY` 或 `ALTER TABLE CHANGE` 来移除某个列的 `AUTO_INCREMENT` 属性。默认为不允许。

### tidb_enable_stmt_summary <span class="version-mark">从 v3.0.4 版本开始引入</span>

Expand Down
6 changes: 3 additions & 3 deletions dev/reference/mysql-compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ TiDB 中,自增列只保证自增且唯一,并不保证连续分配。TiDB
{{< copyable "sql" >}}

```sql
create table t(id int unique key auto_increment, c int);
create table t(id int unique key AUTO_INCREMENT, c int);
```

TiDB 实现自增 ID 的原理是每个 tidb-server 实例缓存一段 ID 值用于分配(目前会缓存 30000 个 ID),用完这段值再去取下一段。
Expand All @@ -63,7 +63,7 @@ TiDB 实现自增 ID 的原理是每个 tidb-server 实例缓存一段 ID 值用
1. 客户端向 B 插入一条将 `id` 设置为 1 的语句 `insert into t values (1, 1)`,并执行成功。
2. 客户端向 A 发送 Insert 语句 `insert into t (c) (1)`,这条语句中没有指定 `id` 的值,所以会由 A 分配,当前 A 缓存了 [1, 30000] 这段 ID,所以会分配 1 为自增 ID 的值,并把本地计数器加 1。而此时数据库中已经存在 `id` 为 1 的数据,最终返回 `Duplicated Error` 错误。

另外,从 TiDB 2.1.18 和 3.0.4 版本开始,TiDB 将通过系统变量 `@@tidb_allow_remove_auto_inc` 控制是否允许通过 `alter table modify` 或 `alter table change` 来移除列的 `auto_increment` 属性,默认是不允许移除。
另外,从 TiDB 2.1.18 和 3.0.4 版本开始,TiDB 将通过系统变量 `@@tidb_allow_remove_auto_inc` 控制是否允许通过 `alter table modify` 或 `alter table change` 来移除列的 `AUTO_INCREMENT` 属性,默认是不允许移除。

### Performance schema

Expand All @@ -88,7 +88,7 @@ TiDB 支持常用的 MySQL 内建函数,但是不是所有的函数都已经
- 不支持通过 `ALTER TABLE` 在所生成的列上添加索引
+ Add Column
- 不支持同时创建多个列
- 不支持将新创建的列设为主键或唯一索引,也不支持将此列设成 auto_increment 属性
- 不支持将新创建的列设为主键或唯一索引,也不支持将此列设成 AUTO_INCREMENT 属性
+ Drop Column: 不支持删除主键列或索引列
+ Change/Modify Column
- 不支持有损变更,比如从 `BIGINT` 变为 `INTEGER`,或者从 `VARCHAR(255)` 变为 `VARCHAR(10)`
Expand Down
12 changes: 6 additions & 6 deletions dev/reference/sql/constraints.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ TiDB 支持的基本约束与 MySQL 的基本相同,但有以下区别:

```sql
CREATE TABLE users (
id INT NOT NULL PRIMARY KEY auto_increment,
id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
doc JSON
);
CREATE TABLE orders (
id INT NOT NULL PRIMARY KEY auto_increment,
id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
user_id INT NOT NULL,
doc JSON,
FOREIGN KEY fk_user_id (user_id) REFERENCES users(id)
Expand Down Expand Up @@ -75,7 +75,7 @@ TiDB 支持的非空约束规则与 MySQL 支持的一致。例如:

```sql
CREATE TABLE users (
id INT NOT NULL PRIMARY KEY auto_increment,
id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
age INT NOT NULL,
last_login TIMESTAMP
);
Expand Down Expand Up @@ -111,7 +111,7 @@ INSERT INTO users (id,age,last_login) VALUES (NULL,123,NULL);
Query OK, 1 row affected (0.03 sec)
```

* 第一条 `INSERT` 语句成功,因为对于定义为 `auto_increment` 的列,允许 `NULL` 作为其特殊值。TiDB 将为其分配下一个自动值。
* 第一条 `INSERT` 语句成功,因为对于定义为 `AUTO_INCREMENT` 的列,允许 `NULL` 作为其特殊值。TiDB 将为其分配下一个自动值。

* 第二条 `INSERT` 语句失败,因为 `age` 列被定义为 `NOT NULL`。

Expand Down Expand Up @@ -176,7 +176,7 @@ Query OK, 0 rows affected (0.10 sec)
```sql
DROP TABLE IF EXISTS users;
CREATE TABLE users (
id INT NOT NULL PRIMARY KEY auto_increment,
id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
username VARCHAR(60) NOT NULL,
UNIQUE KEY (username)
);
Expand Down Expand Up @@ -232,7 +232,7 @@ ERROR 1062 (23000): Duplicate entry 'bill' for key 'username'
```sql
DROP TABLE IF EXISTS users;
CREATE TABLE users (
id INT NOT NULL PRIMARY KEY auto_increment,
id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
username VARCHAR(60) NOT NULL,
UNIQUE KEY (username)
);
Expand Down
2 changes: 1 addition & 1 deletion dev/reference/sql/statements/add-column.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ category: reference
{{< copyable "sql" >}}

```sql
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY auto_increment);
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY AUTO_INCREMENT);
```

```
Expand Down
2 changes: 1 addition & 1 deletion dev/reference/sql/statements/add-index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ category: reference
{{< copyable "sql" >}}

```sql
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY auto_increment, c1 INT NOT NULL);
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, c1 INT NOT NULL);
```

```
Expand Down
2 changes: 1 addition & 1 deletion dev/reference/sql/statements/alter-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ category: reference
{{< copyable "sql" >}}

```sql
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY auto_increment, c1 INT NOT NULL);
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, c1 INT NOT NULL);
```

```
Expand Down
2 changes: 1 addition & 1 deletion dev/reference/sql/statements/analyze-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ category: reference
{{< copyable "sql" >}}

```sql
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY auto_increment, c1 INT NOT NULL);
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, c1 INT NOT NULL);
```

```
Expand Down
2 changes: 1 addition & 1 deletion dev/reference/sql/statements/change-column.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ category: reference
{{< copyable "sql" >}}

```sql
CREATE TABLE t1 (id int not null primary key auto_increment, col1 INT);
CREATE TABLE t1 (id int not null primary key AUTO_INCREMENT, col1 INT);
```

```
Expand Down
2 changes: 1 addition & 1 deletion dev/reference/sql/statements/create-index.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ category: reference
{{< copyable "sql" >}}

```sql
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY auto_increment, c1 INT NOT NULL);
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, c1 INT NOT NULL);
```

```
Expand Down
2 changes: 1 addition & 1 deletion dev/reference/sql/statements/create-view.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ category: reference
{{< copyable "sql" >}}

```sql
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY auto_increment, c1 INT NOT NULL);
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, c1 INT NOT NULL);
```

```
Expand Down
2 changes: 1 addition & 1 deletion dev/reference/sql/statements/delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ category: reference
{{< copyable "sql" >}}

```sql
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY auto_increment, c1 INT NOT NULL);
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, c1 INT NOT NULL);
```

```
Expand Down
2 changes: 1 addition & 1 deletion dev/reference/sql/statements/drop-column.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ category: reference
{{< copyable "sql" >}}

```sql
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY auto_increment, col1 INT NOT NULL, col2 INT NOT NULL);
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, col1 INT NOT NULL, col2 INT NOT NULL);
```

```
Expand Down
2 changes: 1 addition & 1 deletion dev/reference/sql/statements/drop-index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ category: reference
{{< copyable "sql" >}}

```sql
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY auto_increment, c1 INT NOT NULL);
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, c1 INT NOT NULL);
```

```
Expand Down
2 changes: 1 addition & 1 deletion dev/reference/sql/statements/drop-view.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ category: reference
{{< copyable "sql" >}}

```sql
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY auto_increment, c1 INT NOT NULL);
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, c1 INT NOT NULL);
```

```
Expand Down
2 changes: 1 addition & 1 deletion dev/reference/sql/statements/explain-analyze.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ category: reference
{{< copyable "sql" >}}

```sql
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY auto_increment, c1 INT NOT NULL);
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, c1 INT NOT NULL);
```

```
Expand Down
2 changes: 1 addition & 1 deletion dev/reference/sql/statements/explain.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ EXPLAIN SELECT 1;
{{< copyable "sql" >}}

```sql
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY auto_increment, c1 INT NOT NULL);
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, c1 INT NOT NULL);
```

```
Expand Down
2 changes: 1 addition & 1 deletion dev/reference/sql/statements/load-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ category: reference

```sql
CREATE TABLE trips (
-> trip_id bigint NOT NULL PRIMARY KEY auto_increment,
-> trip_id bigint NOT NULL PRIMARY KEY AUTO_INCREMENT,
-> duration integer not null,
-> start_date datetime,
-> end_date datetime,
Expand Down
2 changes: 1 addition & 1 deletion dev/reference/sql/statements/modify-column.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ category: reference
{{< copyable "sql" >}}

```sql
CREATE TABLE t1 (id int not null primary key auto_increment, col1 INT);
CREATE TABLE t1 (id int not null primary key AUTO_INCREMENT, col1 INT);
```

```
Expand Down
2 changes: 1 addition & 1 deletion dev/reference/sql/statements/rename-index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ category: reference
{{< copyable "sql" >}}

```sql
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY auto_increment, c1 INT NOT NULL, INDEX col1 (c1));
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, c1 INT NOT NULL, INDEX col1 (c1));
```

```
Expand Down
2 changes: 1 addition & 1 deletion dev/reference/sql/statements/replace.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ category: reference
{{< copyable "sql" >}}

```sql
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY auto_increment, c1 INT NOT NULL);
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, c1 INT NOT NULL);
```

```
Expand Down
2 changes: 1 addition & 1 deletion dev/reference/sql/statements/select.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ category: reference
{{< copyable "sql" >}}

```sql
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY auto_increment, c1 INT NOT NULL);
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, c1 INT NOT NULL);
```

```
Expand Down
2 changes: 1 addition & 1 deletion dev/reference/sql/statements/show-indexes.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ category: reference
{{< copyable "sql" >}}

```sql
CREATE TABLE t1 (id int not null primary key auto_increment, col1 INT, INDEX(col1));
CREATE TABLE t1 (id int not null primary key AUTO_INCREMENT, col1 INT, INDEX(col1));
```

```
Expand Down
2 changes: 1 addition & 1 deletion dev/reference/sql/statements/show-table-status.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ category: reference
{{< copyable "sql" >}}

```sql
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY auto_increment, c1 INT NOT NULL);
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, c1 INT NOT NULL);
```

```
Expand Down
2 changes: 1 addition & 1 deletion dev/reference/sql/statements/trace.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ trace format='row' select * from mysql.user;
{{< copyable "sql" >}}

```sql
CREATE TABLE t1 (id int not null primary key auto_increment);
CREATE TABLE t1 (id int not null primary key AUTO_INCREMENT);
```

```
Expand Down
2 changes: 1 addition & 1 deletion dev/reference/sql/statements/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ category: reference
{{< copyable "sql" >}}

```sql
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY auto_increment, c1 INT NOT NULL);
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, c1 INT NOT NULL);
```

```
Expand Down
4 changes: 2 additions & 2 deletions v1.0/sql/mysql-compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ TiDB 的自增 ID (Auto Increment ID) 只保证自增且唯一,并不保证连
> 在有两个 TiDB(TiDB A 缓存 [1,5000] 的自增 ID,TiDB B 缓存 [5001,10000] 的自增 ID)的集群,使用如下 SQL 语句创建一个带有自增 ID 的表:
>
> ```
> create table t(id int unique key auto_increment, c int);
> create table t(id int unique key AUTO_INCREMENT, c int);
> ```
>
> 该语句执行如下:
Expand Down Expand Up @@ -75,7 +75,7 @@ TiDB 实现了 F1 的异步 Schema 变更算法,DDL 执行过程中不会阻
+ Add/Drop primary key 操作目前不支持。
+ Add Index/Column 操作不支持同时创建多个索引或列。
+ Drop Column 操作不支持删除的列为主键列或索引列。
+ Add Column 操作不支持同时将新添加的列设为主键或唯一索引,也不支持将此列设成 auto_increment 属性。
+ Add Column 操作不支持同时将新添加的列设为主键或唯一索引,也不支持将此列设成 AUTO_INCREMENT 属性。
+ Change/Modify Column 操作目前支持部分语法,细节如下:
- 在修改类型方面,只支持整数类型之间修改,字符串类型之间修改和 Blob 类型之间的修改,且只能使原类型长度变长。此外,不能改变列的 unsigned/charset/collate 属性。这里的类型分类如下:
* 具体支持的整型类型有:TinyInt,SmallInt,MediumInt,Int,BigInt。
Expand Down
4 changes: 2 additions & 2 deletions v2.0/sql/mysql-compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ TiDB 的自增 ID (Auto Increment ID) 只保证自增且唯一,并不保证连
> 在有两个 TiDB(TiDB A 缓存 [1,5000] 的自增 ID,TiDB B 缓存 [5001,10000] 的自增 ID)的集群,使用如下 SQL 语句创建一个带有自增 ID 的表:
>
> ```
> create table t(id int unique key auto_increment, c int);
> create table t(id int unique key AUTO_INCREMENT, c int);
> ```
>
> 该语句执行如下:
Expand Down Expand Up @@ -75,7 +75,7 @@ TiDB 实现了 F1 的异步 Schema 变更算法,DDL 执行过程中不会阻
+ Add/Drop primary key 操作目前不支持。
+ Add Index/Column 操作不支持同时创建多个索引或列。
+ Drop Column 操作不支持删除的列为主键列或索引列。
+ Add Column 操作不支持同时将新添加的列设为主键或唯一索引,也不支持将此列设成 auto_increment 属性。
+ Add Column 操作不支持同时将新添加的列设为主键或唯一索引,也不支持将此列设成 AUTO_INCREMENT 属性。
+ Change/Modify Column 操作目前支持部分语法,细节如下:
- 在修改类型方面,只支持整数类型之间修改,字符串类型之间修改和 Blob 类型之间的修改,且只能使原类型长度变长。此外,不能改变列的 unsigned/charset/collate 属性。这里的类型分类如下:
* 具体支持的整型类型有:TinyInt,SmallInt,MediumInt,Int,BigInt。
Expand Down
4 changes: 2 additions & 2 deletions v2.1-legacy/sql/mysql-compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ TiDB 的自增 ID (Auto Increment ID) 只保证自增且唯一,并不保证连
假设有这样一个带有自增 ID 的表:

```sql
create table t(id int unique key auto_increment, c int);
create table t(id int unique key AUTO_INCREMENT, c int);
```

TiDB 实现自增 ID 的原理是每个 tidb-server 实例缓存一段 ID 值用于分配(目前会缓存 30000 个 ID),用完这段值再去取下一段。
Expand Down Expand Up @@ -90,7 +90,7 @@ TiDB 实现了 F1 的异步 Schema 变更算法,DDL 执行过程中不会阻
+ Add/Drop primary key 操作目前不支持。
+ Add Index/Column 操作不支持同时创建多个索引或列。
+ Drop Column 操作不支持删除的列为主键列或索引列。
+ Add Column 操作不支持同时将新添加的列设为主键或唯一索引,也不支持将此列设成 auto_increment 属性。
+ Add Column 操作不支持同时将新添加的列设为主键或唯一索引,也不支持将此列设成 AUTO_INCREMENT 属性。
+ Change/Modify Column 操作目前支持部分语法,细节如下:
- 在修改类型方面,只支持整数类型之间修改,字符串类型之间修改和 Blob 类型之间的修改,且只能使原类型长度变长。此外,不能改变列的 unsigned/charset/collate 属性。这里的类型分类如下:
* 具体支持的整型类型有:TinyInt,SmallInt,MediumInt,Int,BigInt。
Expand Down
2 changes: 1 addition & 1 deletion v2.1/how-to/get-started/data-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ TiDB Data Migration 平台由 3 部分组成:DM-master、DM-worker 和 dmctl
do
mysql -h 127.0.0.1 -P "$((3306+i))" -u root <<EoSQL
create database dmtest1;
create table dmtest1.t1 (id bigint unsigned not null auto_increment primary key, c char(32), port int);
create table dmtest1.t1 (id bigint unsigned not null AUTO_INCREMENT primary key, c char(32), port int);
EoSQL
done
```
Expand Down
4 changes: 2 additions & 2 deletions v2.1/how-to/get-started/tidb-binlog.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ Check Table Before Drop: false
```sql
create database tidbtest;
use tidbtest;
create table t1 (id int unsigned not null auto_increment primary key);
create table t1 (id int unsigned not null AUTO_INCREMENT primary key);
insert into t1 () values (),(),(),(),();
select * from t1;
```
Expand All @@ -260,7 +260,7 @@ Check Table Before Drop: false

TiDB [(none)]> use tidbtest;
Database changed
TiDB [tidbtest]> create table t1 (id int unsigned not null auto_increment primary key);
TiDB [tidbtest]> create table t1 (id int unsigned not null AUTO_INCREMENT primary key);
Query OK, 0 rows affected (0.11 sec)

TiDB [tidbtest]> insert into t1 () values (),(),(),(),();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -458,4 +458,4 @@ TiDB 默认会在建表时为新表分裂 Region。开启该变量后,会在

默认值:0

这个变量用来控制是否允许通过 `ALTER TABLE MODIFY` 或 `ALTER TABLE CHANGE` 来移除某个列的 `auto_increment` 属性。默认为不允许。
这个变量用来控制是否允许通过 `ALTER TABLE MODIFY` 或 `ALTER TABLE CHANGE` 来移除某个列的 `AUTO_INCREMENT` 属性。默认为不允许。
Loading