Skip to content

Commit 4628801

Browse files
ivothglejaywcjlove
authored andcommitted
修复 truncate 语法错误
1 parent e847a2a commit 4628801

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

21-minutes-MySQL-basic-entry.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ alter table students rename workmates;
549549
-- 清空表为 workmates 里面的数据,不删除表。
550550
delete from workmates;
551551
-- 删除workmates表中的所有数据,且无法恢复
552-
truncate from workmates;
552+
truncate table workmates;
553553
```
554554
555555
### 删除整张表

0 commit comments

Comments
 (0)