0
点赞
收藏
分享

微信扫一扫

SQL SERVER随机取记录


SQL SERVER里实现随机取记录可这样写:

select top 10 
newid() as row, productid, productname

from Products

order by row


参考文章

​​http://www.builder.com.cn/2006/0724/301184.shtml​​

举报

相关推荐

0 条评论