微信扫一扫
随机获取一条数据,使用random()函数,也可以加筛选条件:
select id from table where status = 0 order by random() limit 1 ;
相关推荐