1.10 从表中随机返回n条记录

同时使用内置函数的rand函数、 limit 和order by:

select * from emp order by rand() limit 2;

原文地址:https://www.cnblogs.com/liang545621/p/7518452.html