MySQL 5 left join unknown column

前端 未结 3 2029
有刺的猬
有刺的猬 2021-02-13 16:47

I had the below query working in mysql 4.1, but does not in 5.0:

SELECT * FROM email e, event_email ee 
LEFT JOIN member m on m.email=e.email 
WHERE ee.email_id          


        
3条回答
  •  无人共我
    2021-02-13 17:32

    The answer would be to place the JOIN statement directly after the table in the FROM statement, because that is the table you are joining on:

    SELECT * 
    FROM email e 
    LEFT JOIN member m on m.email=e.email, 
    event_email ee 
    WHERE ee.email_id = e.email_id
    

提交回复
热议问题