Skip to content
Permalink
Browse files

*: fix alter add unique syntax (#912)

  • Loading branch information...
lilin90 authored and CaitinChen committed Feb 21, 2019
1 parent b46c6e1 commit 5dc0a30533b0efafb65c38988b723ec6063a415c
Showing with 3 additions and 3 deletions.
  1. +1 −1 v1.0/QUICKSTART.md
  2. +1 −1 v2.0/QUICKSTART.md
  3. +1 −1 v2.1/try-tidb.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:
@@ -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:
@@ -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

0 comments on commit 5dc0a30

Please sign in to comment.
You can’t perform that action at this time.