Skip to content

Commit

Permalink
update.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Sep 9, 2016
1 parent be9250b commit 07fdd99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MySQL/MySQL一些常用语句.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@ ALTER TABLE `user` ADD FULLTEXT (description);
ALTER TABLE `table_name` ADD INDEX index_name ( `column1`, `column2`, `column3`)

```sql
-- 给 user 表中的 description 字段添加全文索引(FULLTEXT)
ALTER TABLE `user` ADD FULLTEXT (description);
-- 给 user 表中的 name、city、age 字段添加名字为name_city_age的普通索引(INDEX)
ALTER TABLE user ADD INDEX name_city_age (name(10),city,age);
```

## 建立索引的时机
Expand Down

0 comments on commit 07fdd99

Please sign in to comment.