From 5dc0a30533b0efafb65c38988b723ec6063a415c Mon Sep 17 00:00:00 2001 From: Lilian Lee Date: Thu, 21 Feb 2019 18:53:36 +0800 Subject: [PATCH] *: fix alter add unique syntax (#912) Via: https://github.com/pingcap/docs-cn/pull/1129 --- v1.0/QUICKSTART.md | 2 +- v2.0/QUICKSTART.md | 2 +- v2.1/try-tidb.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/v1.0/QUICKSTART.md b/v1.0/QUICKSTART.md index 55c7971020ff..9d009d8888d2 100755 --- a/v1.0/QUICKSTART.md +++ b/v1.0/QUICKSTART.md @@ -131,7 +131,7 @@ CREATE UNIQUE INDEX person_num ON person (number); or ```sql -ALTER TABLE person ADD UNIQUE person_num on (number); +ALTER TABLE person ADD UNIQUE person_num (number); ``` Use the `SHOW INDEX` to display all the indexes in a table: diff --git a/v2.0/QUICKSTART.md b/v2.0/QUICKSTART.md index afa334a41607..c52f24b00403 100755 --- a/v2.0/QUICKSTART.md +++ b/v2.0/QUICKSTART.md @@ -135,7 +135,7 @@ This section describes some basic CRUD operations in TiDB. or ```sql - ALTER TABLE person ADD UNIQUE person_num on (number); + ALTER TABLE person ADD UNIQUE person_num (number); ``` - To show all the indexes in a table, use the `SHOW INDEX` statement: diff --git a/v2.1/try-tidb.md b/v2.1/try-tidb.md index a41ab4b877cb..87dc2f4ccf19 100755 --- a/v2.1/try-tidb.md +++ b/v2.1/try-tidb.md @@ -131,7 +131,7 @@ DROP TABLE IF EXISTS person; or ```sql - ALTER TABLE person ADD UNIQUE person_num on (number); + ALTER TABLE person ADD UNIQUE person_num (number); ``` ### Show the indexes