我收到此錯誤:#1054 - 未知列「t.mobile」在「關於條款」獲得MySQL錯誤1054
SELECT t.*,v.name,v.contact_person_email,l.firstname as memname
FROM transactions t , vendor v
LEFT JOIN loyalty_members l ON (t.mobile=l.mobile)
WHERE t.vendor_id ='N1WU95'
AND v.alert_mail = '2'
AND t.add_date <= '2011-07-22 09:00:00'
AND t.add_date >= '2011-07-21 09:00:00'
AND t.vendor_id = v.id
AND t.type = '1'
AND t.deleted != '1'
AND t.reference_id = '0'
GROUP BY t.mobile
HAVING COUNT(t.mobile) > 1;
任何人都可以請幫我解決了這一點?
謝謝。
請給出表格架構! – rabudde
列表'transactions'中是否存在'mobile'列? – Shef
所以我們看到另一個例子,爲什麼SELECT *不好 – wonk0