Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified media/sqlgram/ColumnName.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/sqlgram/CreateDatabaseStmt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/sqlgram/CreateIndexStmtUnique.png.bak
Binary file not shown.
Binary file modified media/sqlgram/DBName.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/sqlgram/DatabaseOptionList.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/sqlgram/DatabaseOptionListOpt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/sqlgram/DeallocateStmt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/sqlgram/DeallocateSym.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/sqlgram/DropTableStmt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/sqlgram/Identifier.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/sqlgram/IfNotExists.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/sqlgram/IndexTypeOpt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/sqlgram/RestrictOrCascadeOpt.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/sqlgram/TableNameList.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/sqlgram/TableOrTables.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion sql-statements/sql-statement-alter-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ EXPLAIN SELECT * FROM t1 WHERE c1 = 3;

## MySQL 兼容性

* 支持除空间类型外的所有数据类型。其它不支持的情况可参考:[alter-primary-key](/tidb-configuration-file.md#alter-primary-key)。
* 支持除空间类型外的所有数据类型。其它不支持的情况可参考:[DDL 语句与 MySQL 的兼容性情况](/mysql-compatibility.md#ddl)。

## 另请参阅

Expand Down
4 changes: 0 additions & 4 deletions sql-statements/sql-statement-change-column.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ aliases: ['/docs-cn/dev/reference/sql/statements/change-column/']

![AlterTableSpec](/media/sqlgram/AlterTableSpec.png)

**ColumnKeywordOpt:**

![ColumnKeywordOpt](/media/sqlgram/ColumnKeywordOpt.png)

**ColumnName:**

![ColumnName](/media/sqlgram/ColumnName.png)
Expand Down
6 changes: 1 addition & 5 deletions sql-statements/sql-statement-create-database.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ aliases: ['/docs-cn/dev/reference/sql/statements/create-database/']

**CreateDatabaseStmt:**

![CreateDatabaseStmt](/media/sqlgram/CreateDatabaseStmt.png)

**DatabaseSym:**

![DatabaseSym](/media/sqlgram/DatabaseSym.png)
![CreateDaatabaseStmt](/media/sqlgram/CreateDatabaseStmt.png)

**IfNotExists:**

Expand Down
7 changes: 2 additions & 5 deletions sql-statements/sql-statement-drop-column.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ aliases: ['/docs-cn/dev/reference/sql/statements/drop-column/']

![AlterTableSpec](/media/sqlgram/AlterTableSpec.png)

**ColumnKeywordOpt:**

![ColumnKeywordOpt](/media/sqlgram/ColumnKeywordOpt.png)

**ColumnName:**

![ColumnName](/media/sqlgram/ColumnName.png)
Expand Down Expand Up @@ -129,7 +125,8 @@ SELECT * FROM t1;

## MySQL 兼容性

* 不支持使用相同语句删除多个列。
* 目前不支持在一条语句中同时删除多个列。
* 目前不支持删除主键列或索引列。

## 另请参阅

Expand Down
1 change: 1 addition & 0 deletions sql-statements/sql-statement-drop-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ Query OK, 0 rows affected (0.23 sec)
## MySQL 兼容性

* 在尝试删除不存在的表时,使用 `IF EXISTS` 删除表不会返回警告。[Issue #7867](https://github.com/pingcap/tidb/issues/7867)
* 目前 `RESTRICT` 和 `CASCADE` 仅在语法上支持。

## 另请参阅

Expand Down