我想知道使用之间有什么区别:
SELECT email, COUNT( email ) AS total
FROM `newsletter`
GROUP BY email having total>1
Run Code Online (Sandbox Code Playgroud)
要么
SELECT count(*) as total, email
FROM 'newsletter'
GROUP BY email having total > 1
Run Code Online (Sandbox Code Playgroud)
两者都给出了相同的结果,但还有什么count(*)比电子邮件更重要?