Sqlserver删除表的中数据
一共可分两种情况
一种是全部删除,一种是根据条件删除
根据条件删除

/******where后面跟条件******/
DELETE from tablename where condition

比如学生表中删除name是John的

DELETE from student where name = 'John'

只删除表中所有的数据
一共两种方法
第一种:

TRUNCATE TABLE tablename

这样删除速度很快
第二种

DELETE from tablename where 1=1

更多推荐

SqlServer 删除表数据