//查询当前记录的

//oracle 上一条记录
select decode(decode(txbs,'无',null,txbs),lag(t.txbs, 1, 0) over(order by t.cjid),'是','否')from qb_app_rycj t 

 //下一条记录
select t.id, lead(t.id, 1, 0) over(order by t.sort,t.eidt_date) as p from cms_article t

posted on 2017-03-09 18:14  来临  阅读(7949)  评论(1编辑  收藏  举报