1. Oracle,随机查询查询语句-20条
select * from
(
select * from 表名
order by dbms_random.value
)
where rownum <= 20;
2.MSSQL Server,随机查询语句-20条
select top 20 * from 表名order by newid()
3.MySQL:,随机查询语句-20条
select * from 表名 order by rand() limit 20
1. Oracle,随机查询查询语句-20条
select * from
(
select * from 表名
order by dbms_random.value
)
where rownum <= 20;
2.MSSQL Server,随机查询语句-20条
select top 20 * from 表名order by newid()
3.MySQL:,随机查询语句-20条
select * from 表名 order by rand() limit 20
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。