标签:针对 获取 自动编号 server top n ble 自动 new 随机
针对“用一条SQL得到数据库中的随机记录集”问题在网上已经有很多答案了:
SQL Server 2000:
SELECT TOP n * FROM tanblename ORDER BY NEWID()
Access
SELECT TOP n * FROM tanblename ORDER BY rnd([一个自动编号字段])
好了!
标签:针对 获取 自动编号 server top n ble 自动 new 随机
原文地址:https://www.cnblogs.com/l9l99/p/10952982.html