oracle 分页 orderby
select *from (select rownum rn,a.* from (select i.img_id,i.img_url,t.news_id,t.news_title,t.news_detail,t.news_date,t.match_type from news_data t left join (select x.img_id,x.news_id,x.img_url from news_image x where (x.news_id,x.img_id) in (select y.news_id,min(y.img_id) from news_image y group by y.news_id)) i on t.news_id = i.news_id where t.news_type = 3 and t.news_date between to_date('2011-12-29 00:0000','yyyy-mm-dd hh24:mi:ss') and to_date('2013-12-29 23:59:59','yyyy-mm-dd hh24:mi:ss') order by t.news_date desc) a where rownum <= 5 ) where rn > 0
相关推荐
lklong 2020-11-22
oraclemch 2020-11-06
shilukun 2020-10-10
周嘉笙 2020-11-09
iilegend 2020-10-19
EricRay 2020-10-16
zhuzhufxz 2020-09-16
dataminer 2020-08-17
bfcady 2020-08-16
Hody 2020-08-16
FightFourEggs 2020-08-16
数据库设计 2020-08-16
Seandba 2020-08-16
Omega 2020-08-16
zjyzz 2020-08-16
yanghuatong 2020-08-16
ktyl000 2020-08-16
dbasunny 2020-08-16