站长资源数据库

取随机记录的语句

整理:jimmy2024/12/26浏览2
简介mysql: select * from tablename order by rand() limit 10 sqlserver: select top 10 * from tablename order by NEWID()
mysql: select * from tablename order by rand() limit 10
sqlserver: select top 10 * from tablename order by NEWID()