标签:
My SQL:,随机查询语句 1 条
select * from 表名 order by rand() limit 1;
SQL Server,随机查询语句1条
select top 1 * from 表名order by newid();
Oracle,随机查询查询语句1条
select * from( select * from 表名 order by dbms_random.value) where rownum = 1;
标签:
原文地址:http://www.cnblogs.com/jalja/p/4484140.html