随机取一定数量的记录
select top 数量 ID from 表名 order by NewID()
顺便还可以按ID之类的排序下:
SELECT * FROM (select top 数量 ID from 表名 order by NewID()) R order by 排序列名 asc
随机取一定数量的记录
select top 数量 ID from 表名 order by NewID()
顺便还可以按ID之类的排序下:
SELECT * FROM (select top 数量 ID from 表名 order by NewID()) R order by 排序列名 asc