Skip to content

Commit

Permalink
*: fix alter add unique syntax (#912)
Browse files Browse the repository at this point in the history
  • Loading branch information
lilin90 authored and CaitinChen committed Feb 21, 2019
1 parent b46c6e1 commit 5dc0a30
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion v1.0/QUICKSTART.md
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion v2.0/QUICKSTART.md
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion v2.1/try-tidb.md
Expand Up @@ -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
Expand Down

0 comments on commit 5dc0a30

Please sign in to comment.