mysql随机获取十条数据

SELECT * FROM tablename ORDER BY RAND() LIMIT 10
原文地址:https://www.cnblogs.com/dashuai01/p/5166723.html