order by newid() 各种数据库随机查询的方法,需要的朋友可以参考一下
SQL Server:
复制代码 代码如下:
Select TOP N * From TABLE Order By NewID()
view plaincopy to clipboardprint?
Select TOP N * From TABLE Order By NewID()
Select TOP N * From TABLE Order By NewID()
以上就是order by newid() 各种数据库随机查询的方法的详细内容,更多请关注0133技术站其它相关文章!