Sql Server :

Sql代码

  1. select top X * from table_name --查询前X条记录,可以改成需要的数字。
  2. select top n * from (select top m * from table_name order by column_name ) a order by column_name