select top N * from tablename order by newid()
其中,N为查询多少条,tablename为数据库表名称。
相关推荐
评论
文章点击榜
2022/7/8 23:39:10 1558012
2021/9/25 22:37:12 249078
2023/2/26 11:35:49 83865
2020/12/30 9:23:53 68129
2023/12/12 9:50:54 41334
2022/11/10 8:56:26 39877
2020/9/24 14:44:39 29097
2022/11/18 21:30:47 24485
2021/1/6 14:57:22 19686
2021/9/24 12:01:10 18331
2020/4/7 17:21:27 17635
2023/2/25 11:50:12 16805
2020/4/7 17:21:26 16803
2015/11/18 12:44:00 14879
2020/4/18 11:45:18 13450
2015/9/4 8:19:00 13414
2015/10/26 16:28:00 13153
2020/7/7 23:25:45 12591
2020/7/24 12:27:57 12174
2022/11/18 21:21:58 11927