17,378
社区成员
发帖
与我相关
我的任务
分享
--默认排序的删除
delete UserInfo
where exists (select 1 from (select rownum rn,UserInfo.主键列 from UserInfo) t
where t.主键列=UserInfo.主键列 and t.rn between 5 and 10);
--指定排序的删除
delete UserInfo
where exists (select 1 from (select row_number() over(order by 排序列) rn,UserInfo.主键列 from UserInfo) t
where t.主键列=UserInfo.主键列 and t.rn between 5 and 10);