码迷,mamicode.com
首页 > 数据库 > 详细

DB2 syntax error

时间:2014-11-05 17:04:57      阅读:227      评论:0      收藏:0      [点我收藏+]

标签:style   blog   io   color   sp   div   on   log   cti   

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

标签:style   blog   io   color   sp   div   on   log   cti   

原文地址:http://www.cnblogs.com/crazyghostvon/p/DB2JoinError.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!