mysql:select * from 表名 order by rand() limit 10;
sql server:select top 10 * from 表名 order by newid();
oracle:select * from(select * from 表名 order by dbms_random.value) where rownum<=20;
access:select top 10 * from 表名 order by rnd(ID)
mysql:select * from 表名 order by rand() limit 10;
sql server:select top 10 * from 表名 order by newid();
oracle:select * from(select * from 表名 order by dbms_random.value) where rownum<=20;
access:select top 10 * from 表名 order by rnd(ID)