随机取出数据库中的若干条记录的方法

发布时间:2008-07-09 03:39:04 阅读次数:

SELECT TOP n * FROM table_name ORDER BY NEWID()

top n,n就是要取出的记录数