]]>Oracle & DB2 SQL 鍒嗛〉鏌ヨ鍐欐硶http://www.tkk7.com/tomato2088/archive/2006/12/11/86858.html瑗跨孩鏌匡紙tomato錛?/dc:creator>瑗跨孩鏌匡紙tomato錛?/author>Mon, 11 Dec 2006 04:06:00 GMThttp://www.tkk7.com/tomato2088/archive/2006/12/11/86858.htmlhttp://www.tkk7.com/tomato2088/comments/86858.htmlhttp://www.tkk7.com/tomato2088/archive/2006/12/11/86858.html#Feedback0http://www.tkk7.com/tomato2088/comments/commentRss/86858.htmlhttp://www.tkk7.com/tomato2088/services/trackbacks/86858.htmlselect * from (select rownum,name from table where rownum <=endIndex ) where rownum > startIndex
浜岋細DB2 DB2鍒嗛〉鏌ヨ SELECT * FROM (Select 瀛楁1,瀛楁2,瀛楁3,rownumber() over(ORDER BY 鎺掑簭鐢ㄧ殑鍒楀悕 ASC) AS rn from 琛ㄥ悕) AS a1 WHERE a1.rn BETWEEN 10 AND 20
浠ヤ笂琛ㄧず鎻愬彇絎?0鍒?0鐨勭邯褰?br /> select * from (select rownumber() over(order by id asc ) as rowid from table where rowid <=endIndex ) where rowid > startIndex