注册 登录
编程论坛 SQL Server论坛

如何批量删除id从40到80的所有数据?

小狐001 发布于 2011-06-17 11:00, 649 次点击
如何批量删除id从40到80的所有数据?
3 回复
#2
panyanpan2011-06-17 11:02
--删除 id从40到80(包括40和80)的所有数据
delete from 表 where id>=40 and id<=80
#3
小狐0012011-06-17 11:18
非常感谢!
#4
fireking2011-06-19 23:50
delete from 表 where id between 40 and 80
1