mysql随机获取十条数据

SELECT * FROM tablename ORDER BY RAND() LIMIT 10

 

posted @ 2016-01-28 16:23  ordinary01  阅读(4395)  评论(0编辑  收藏  举报