MS SqlServer 随机查询并随机排序

MS SqlServer :

select top N *

from Table1

order by NewId()

 

mySql:

SELECT FROM tableName ORDER BY rand()

posted @ 2017-03-01 09:57  zslm___  阅读(3966)  评论(0编辑  收藏  举报