答案:mysql: select * from tablename order by rand() limit 10 sqlserver: select top 10 * from tablename order by NEWID()
上一个:一个多表查询的SQL语句下一个:数据库设计的折衷方法