我想這個SQL查詢轉換成笨查詢笨 - MySQL查詢轉換爲CodeIgniter的活動記錄查詢
SELECT
uploads.EMAIL
FROM
uploads
JOIN (
SELECT EMAIL, COUNT(*) as num FROM uploads GROUP BY EMAIL
) c ON uploads.EMAIL = c.EMAIL
ORDER BY
c.num DESC,
EMAIL ASC
感謝您的幫助 親切的問候
「codeigniter query」是什麼意思?你的意思是喜歡使用Active Record類嗎? –
是的。我不確定如何做子查詢對不起英語不太好 – Adam