当前位置:Gxlcms > mysql > 随机抽取n个记录的SQL_MySQL

随机抽取n个记录的SQL_MySQL

时间:2021-07-01 10:21:17 帮助过:14人阅读

mysql: select * from tablename order by rand() limit 10
sqlserver: select top 10 * from tablename order by NEWID()

人气教程排行