如何在Oracle中查询排序后的第一条记录
其实就是分页查询的另一种应用:
select * from (
select tb.*, rownum from table_name tb where column_name like '20080311%' order by id)
where rownum=1
select * from (
select tb.*, rownum from table_name tb where column_name like '20080311%' order by id)
where rownum=1
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章