删除表里的后5000条数据一个表里面有1万多条数据我现在要删除他的后5000条A表idname1a2b......怎么弄?[解
删除表里的后5000条数据
一个表里面有1万多条数据
我现在要删除他的后5000条
A表
id name
1 a
2 b
... ...
怎么弄?
[解决办法]
ID 大的一定在后面吗、
delete from table1 where id in (select top 5000 id from table1 order by Convert(int ,id) desc)
