sql server 取随机行

--从table_name中随机取n行
select top n * from table_name order by NEWID()

 

posted @ 2014-12-06 20:50  蒹葭白露  阅读(846)  评论(0编辑  收藏  举报