MySQL取出指定数量的随机记录

select * from .. where .. order by rand() limit 50;
原文地址:https://www.cnblogs.com/pingming/p/10768563.html