Oracle 鍒嗛〉鏌ヨ 鎻掑彊涓嶅嚭鏁版嵁
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Oracle 鍒嗛〉鏌ヨ 鎻掑彊涓嶅嚭鏁版嵁相关的知识,希望对你有一定的参考价值。
鏍囩锛?a href='http://www.mamicode.com/so/1/use' title='use'>use
鍒悕 瀵艰嚧 rac order param sele nbsp time
杩涜鍒嗛〉鏌ヨ鏃?nbsp;浣跨敤浜唕ownum鍏抽敭瀛楀鑷存煡璇㈡椂鏌ヨ涓嶅嚭鏁版嵁 锛屼慨鏀?nbsp;缁檙ownum瀛楁鍙栦釜鍒悕锛岃閬縪racle鍏抽敭瀛?/p>
select * from
(select rownum,row_.* from
(select vil.*, c.audit_title, nvl(vil.update_time,鈥?001-01-01鈥? update_time2, u.user_name as user_name, prop.property_name as pname, param.description as description from hmfs_bas_village vil left join hmfs_bas_property prop on vil.property_id = prop.id left join hmfs_auth_village_audit c on c.village_id = vil.id and c.audit_state = 鈥?3024001鈥?left join hmfs_sys_param param on vil.audit_state = param.param_value left join hmfs_auth_user u on u.id = vil.updater where 1=1 and vil.audit_state = 鈥?3024001鈥?order by coalesce(vil.update_time, 鈥?001-01-01鈥? desc)
row_ )
where rownum < 20 and rownum >= 10
select * from
(select rownum as rownum_,row_.* from
(select vil.*, c.audit_title, nvl(vil.update_time,鈥?001-01-01鈥? update_time2, u.user_name as user_name, prop.property_name as pname, param.description as description from hmfs_bas_village vil left join hmfs_bas_property prop on vil.property_id = prop.id left join hmfs_auth_village_audit c on c.village_id = vil.id and c.audit_state = 鈥?3024001鈥?left join hmfs_sys_param param on vil.audit_state = param.param_value left join hmfs_auth_user u on u.id = vil.updater where 1=1 and vil.audit_state = 鈥?3024001鈥?order by coalesce(vil.update_time, 鈥?001-01-01鈥? desc)
row_ )
where rownum_ < 20 and rownum_ >= 10
以上是关于Oracle 鍒嗛〉鏌ヨ 鎻掑彊涓嶅嚭鏁版嵁的主要内容,如果未能解决你的问题,请参考以下文章