尝试做一个简单的内部联接,但似乎无法弄清楚发生了什么。代码是:
SELECT *,
FROM flgop as fl
INNER JOIN newuniverse as new
ON fl.Voters_FirstName =new.FirstName
AND fl.Voters_LastName = new.Last
AND fl.Residence_Addresses_Zip = new.Zip;
我得到的错误信息是:
[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM flgop as fl
INNER JOIN newuniverse as new
ON fl.Voters_FirstName =new.Fir' at line 2
答案 0 :(得分:1)
SELECT *, <-- This comma is not necessary
FROM flgop as fl
INNER JOIN newuniverse as new
ON fl.Voters_FirstName =new.FirstName
AND fl.Voters_LastName = new.Last
AND fl.Residence_Addresses_Zip = new.Zip;