这样的SQL语句怎么写? delete table where num not in (select top 100* from tableorder by num desc) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 delete table where num not in (select top 100 num from tableorder by num desc) delete tb where num in(select top 20 num from tb order by num) zhangyang555(张阳)的方法,可能不能满足楼主“总是保留100条最新的记录.”的愿望,万一不止多出20条,就不对啦! delete from 表where Num in(select top 20 Num from 表 order by Num desc) 在界面中怎么通过一个按钮 来 控制执行一段 sql脚本? 求SQL语句-在SELECT中判断显示那列 求一条查询语句 我需要在sqlserver中存储一个常数,我应该怎么做? 问个SQLServer2000进程阻塞的解决问题 如何用sql语句实现字符串连接? 请高手指点迷津 如何添加记录? 新年快乐!希望大家看看在下的拜年帖子^_^ 如何截取无规则的字段?? 写好了存储过程在VB中如何调用 output参数 数据库怎么设计好?
order by num desc)
where Num in(select top 20 Num from 表 order by Num desc)