首页 > 代码库 > DB2 syntax error

DB2 syntax error

Error infomation:  An unexpected token "JOIN" was found following "". Expected tokens may include: "FROM".. SQLCODE=-104, SQLSTATE=42601, DRIVER=4.17.30  

SQL statement:

Select * from a left join                    (b left join c on b.ID = c.ID)where a.a = "abc"

Correction:

Select * from a left join                    (select * from b left join c on b.ID = c.ID)where a.a = "abc"

 

DB2 syntax error