笔记
MySQL随机取一条数据的代码,重复率高,但是代码简单
("select * from redurl_jump where id >= (select floor(rand() * (select max(id) from redurl_jump))) order by id limit 1;");
转载请注明出处 AE博客|墨渊 » 笔记 - MySQL随机取一条数据
笔记
MySQL随机取一条数据的代码,重复率高,但是代码简单
("select * from redurl_jump where id >= (select floor(rand() * (select max(id) from redurl_jump))) order by id limit 1;");
转载请注明出处 AE博客|墨渊 » 笔记 - MySQL随机取一条数据
发表评论