SQL Server:
复制代码代码如下:
SELECT TOP 10 * FROM T_USER ORDER BY NEWID()
ORACLE:
SELECT * FROM (SELECT * FROM T_USER ORDER BY DBMS_RANDOM.RANDOM()) WHERE ROWNUM <= 10
MySQL:
SELECT * FROM T_USER ORDER BY RAND() LIMIT 10