[e:loop={'SELECT * FROM `[!db.pre!]ecms_news` AS t1 JOIN (SELECT ROUND(RAND() * ((SELECT MAX(40000) FROM `[!db.pre!]ecms_news`)-(SELECT MIN(30000) FROM `[!db.pre!]ecms_news`))+(SELECT MIN(id) FROM `[!db.pre!]ecms_news`)) AS id) AS t2 WHERE t1.id >= t2.id ORDER BY t1.id LIMIT 12;',12,24,1,"","rand()"}]
在大数据的情况下,效率很高.要不然大数据情况下,会很郁闷.
|