标签:server dom 代码 码代码 oracle use new bsp where
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
标签:server dom 代码 码代码 oracle use new bsp where
原文地址:http://www.cnblogs.com/youmingkuang/p/6514029.html