select top N * from tablename order by newid() Copy
select top N * from tablename order by newid()
其中,N为查询多少条,tablename为数据库表名称。
相关推荐
评论
文章点击榜
2022/7/8 23:39:10 1945683
2021/9/25 22:37:12 271292
2023/2/26 11:35:49 98727
2023/12/12 9:50:54 98295
2020/12/30 9:23:53 74558
2022/11/10 8:56:26 49190
2020/9/24 14:44:39 30249
2022/11/18 21:30:47 30092
2021/1/6 14:57:22 22299
2023/2/25 11:50:12 21910
2021/9/24 12:01:10 19847
2020/4/7 17:21:27 19290
2020/4/7 17:21:26 18301
2015/11/18 12:44:00 15765
2020/4/18 11:45:18 15176
2022/11/18 21:21:58 14777
2015/9/4 8:19:00 14190
2015/10/26 16:28:00 14061
2020/7/24 12:27:57 13625
2020/7/7 23:25:45 13569