TRUNCATE、Drop、Delete 的用法

 

//Truncate是一个能够快速清空资料表内所有资料的SQL语法。并且能针对具有自动递增值的字段,做计数重置归零重新计算的作用。

truncate table1;

drop table1;

delete from table1;
delete from table1 where pid=6;

 

posted @ 2019-08-04 10:25  anobscureretreat  阅读(165)  评论(0编辑  收藏  举报