SQL Server 2005 下取 前 100 条记录的方法: declare @dwtop int set @dwtop = 100 select top ( @dwtop ) * from tablename 这就可以啦