用NEWID()方法。

SELECT  TOP 1  *  ,NEWID() AS random from [toblename] order by random

其中的1可以换成其他任意整数,表示取的数据条数

相关文章: