摘要: 一、清空表语句 truncate table [表名] ; delete from [表名] where …; 二、相同点 两者都是删除表数据 但不会删除表结构 三、不同点 delete支持按条件删除,truncate不支持。 delete 删除后自增列不会重置,而truncate会被重置。 del 阅读全文
posted @ 2022-11-01 17:28 业余砖家 阅读(130) 评论(0) 推荐(0)