时间:2021-07-01 10:21:17 帮助过:19人阅读
SELECT * FROM 'phome_ecms_news' WHERE classid = (SELECT classid FROM 'phome_enewsClass' where islast=1 RAND() limit 1) RAND() limit 1;
SELECT * FROM 'phome_ecms_news' WHERE classid IN ( SELECT classid FROM 'phome_enewsClass' where islast=1 ORDER BY RAND() limit 1 ) ORDER BY RAND() limit 1;