mysql查詢隨機1條,5條

//隨機1條 SELECT * FROM zhuizhu_weixin AS t1 JOIN (SELECT ROUND(RAND() * ((SELECT MAX(id) FROM zhuizhu_weixin)-(SELECT MIN(id) FROM zhuizhu_weixin))+(SELECT MIN(id) FROM zhuizhu_weixin)) AS id) AS t2 WHE
相關文章
相關標籤/搜索