JDP 發表於 2012-11-22 10:26:05

MSSQL 與 MySQL Limit 相同功能之語法

MySQL:select * from table limit 5,30
MSSQL:select * from (select row_number() over (order by id) as row_num,* from table)
t where row_num between 5 and 30
Reference: http://tw.zhidao.baidu.com/question/2252883.html
頁: [1]
查看完整版本: MSSQL 與 MySQL Limit 相同功能之語法