数据库删除--【SQL Server】

删除数据:delete from 表名 where ...
清空:truncate table 表名
说明:from关键字可以省略不写
--删除大于cid大于6的数据
delete classinfo where cid>6
--清空
truncate table userinfo --有外键时清空会报错
发布了44 篇原创文章 · 获赞 4 · 访问量 1053

猜你喜欢

转载自blog.csdn.net/qq_44162236/article/details/104597024