1. 限制返回的行 select top 10 * from tablename
2. 返回随机n行 select top n * from tablename order by newid()
1. 限制返回的行 select top 10 * from tablename
2. 返回随机n行 select top n * from tablename order by newid()
转载于:https://www.cnblogs.com/lilideng/p/SQL_NewId.html