SQL、MySQL、Oracle随机查询语句?

SQL、MySQL、Oracle随机查询语句?


哔哔one
浏览 557回答 3
3回答

慕哥9229398

比如随机插4条oracleselect * from (select * from 表名 order by dbms_random.value) where rownum<=4sqlserverselect top 4 * from 表名 order by newid()mysqlselect * from 表名 order by rand() limit 4;
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

SQL Server