样例一:
select * from
(select customer_id,name,rownum r from crm_customer where rownum<16) where r>2 order by customer_id 样例二:
若数据量大可以这样:
select * from
( select col1,col2,col3,rownum rn from your_table where rownum < 16 ) where rn > 11 ; 样式三:
若数据量不大可以这样:
select col1,col2,col3 from your_table where rownum <16 minus select col1,col2,col3 from your_table where rownum < 11 ; -----------------------------------------------------------------------------------------------------------------------
资料来源于网上,个人整理
|
|
来自: ShangShujie > 《java》