日期:2014-05-16 浏览次数:20796 次
(SELECT * FROM `cms` AS t1 JOIN (SELECT ROUND(RAND() * (SELECT MAX(id) FROM `cms`)) AS id) AS t2 WHERE t1.id >= t2.id [color=#FF0000]AND ab>5000[/color] ORDER BY t1.id ASC LIMIT 1) UNION (SELECT * FROM `cms` AS t1 JOIN (SELECT ROUND(RAND() * (SELECT MAX(id) FROM `cms`)) AS id) AS t2 WHERE t1.id >= t2.id [color=#FF0000]AND ab>5000[/color] ORDER BY t1.id ASC LIMIT 1) LIMIT 2