提交 2778a741 编写于 作者: M Mars Liu

fixed mistake question

上级 0be0e389
......@@ -27,7 +27,7 @@ Joe 应该如何优化?
## 答案
```sql
alter table goods add index (`stock-id`, category_id, name);
alter table goods add index (stock, category_id, name);
```
## 选项
......@@ -35,7 +35,7 @@ alter table goods add index (`stock-id`, category_id, name);
### A
```sql
alter table goods add index (`stock-id` and category_id and name);
alter table goods add index (stock and category_id and name);
```
### B
......@@ -47,5 +47,5 @@ alter table goods add index (concat(stock, category_id, name));
### C
```sql
alter table goods add index (`stock-id` + category_id + name);
alter table goods add index (stock + category_id + name);
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册