mysql随机取出几条数据记录
来源:原创
时间:2016-09-18
作者:脚本小站
分类:DB
主要就是一个函数 rand()
select id,title from article where id < 50 order by rand() limit 5;
主要就是一个函数 rand()
select id,title from article where id < 50 order by rand() limit 5;