SQL SERVER/MS Access的Select Top的用法: Select TOP number|percent table_columname FROM tablename MySQL/Oracle的SELECT TOP Select columname FROM tablename LIMIT number Select columname FROM tablename WHERE ROWNUM < number.…
http://www.tuicool.com/articles/bI3IBv 附问题:有以下一个SQL语句: SELECT * FROM ( SELECT t.*, row_number() OVER (ORDER BY ID) rn FROM mytable t ) WHERE rn BETWEEN :start and :end sql中的order by语句大大降低了处理的速度,如果把order by去掉,相应的执行计划会大大地提高.如果换成下面的sql: SELECT t.*, row_…