Mysql 随机查询数据

SELECT * FROM tablename ORDER BY RAND() LIMIT 10

原文地址:https://www.cnblogs.com/xiaozong/p/5659271.html