存档
mark:
rand2() ASE 15.0.2
newid() ASE 12.5.1
rand() Any Version
set rowcount N
select * from table order by rand(convert(int,row1)+datepart(ms,getdate()))
set rowcount 0
mark:
rand2() ASE 15.0.2
newid() ASE 12.5.1
rand() Any Version
set rowcount N
select * from table order by rand(convert(int,row1)+datepart(ms,getdate()))
set rowcount 0