SQL中怎么删除表的前10行或后10行?

来源:互联网 发布:网上审批软件 编辑:程序博客网 时间:2024/05/09 06:02


前10行:

delete from 表明where id in(select top 10 id from 表明 order by id)

后10行:

delete from 表明where id in(select top 10 id from 表明 order by id desc)

0 0