Select top(20) * from 表名 order by NEWID() --随机查询
转载于:https://www.cnblogs.com/Xtudou/p/7879868.html
本文介绍了一种使用 SQL 语句进行随机查询的方法,通过 Select top(20)* from 表名 order by NEWID() 实现随机抽取数据库表中的记录。
Select top(20) * from 表名 order by NEWID() --随机查询
转载于:https://www.cnblogs.com/Xtudou/p/7879868.html

被折叠的 条评论
为什么被折叠?