如下:随机查询四条数据
SELECT id FROM 'table'
WHERE id >= (SELECT floor(RAND() * (SELECT MAX(id) FROM 'table')))
ORDER BY id LIMIT 4;
参考自:https://blog.csdn.net/zxl315/article/details/2435368
如下:随机查询四条数据
SELECT id FROM 'table'
WHERE id >= (SELECT floor(RAND() * (SELECT MAX(id) FROM 'table')))
ORDER BY id LIMIT 4;
参考自:https://blog.csdn.net/zxl315/article/details/2435368