日期:2014-05-17 浏览次数:20980 次
SELECT * FROM (SELECT col_1, col_2 FROM my_table ORDER BY col_1) WHERE ROWNUM < 35
SELECT * FROM (SELECT col_1, col_2 FROM my_table ORDER BY col_1) WHERE ROWNUM < 67 minus SELECT * FROM (SELECT col_1, col_2 FROM my_table ORDER BY col_1) WHERE ROWNUM < 33
------解决方案--------------------
类似
select * from( select a.*,row_number() over(order by object_id) as rn from dba_objects a )where rn>64 and rn<=100
------解决方案--------------------
CREATE TABLE MG_CONT AS SELECT SYSDATE + LEVEL CONTRACT_ST_DATE FROM DUAL CONNECT BY LEVEL < 68;
------解决方案--------------------