当前位置: 代码迷 >> Informix >> informix connect by 语法报错求解,该怎么解决
  详细解决方案

informix connect by 语法报错求解,该怎么解决

热度:4577   发布时间:2013-02-26 00:00:00.0
informix connect by 语法报错求解
大家好,想请问下 11.5的版本,怎么无法执行下面SQL

select t.*,t.rowid from request_template t where 1=1 
start with  t.request_template_id = 20000       
CONNECT BY PRIOR t.request_template_id = t.up_request_template_id;

提示语法错误,而在其他informix数据库环境可以执行,请问是否需要设置数据库参数?


------解决方案--------------------------------------------------------
去掉where 1=1 试试
------解决方案--------------------------------------------------------
我用11.70, 类似的语句没问题,有没有where一样
------解决方案--------------------------------------------------------
没记得要设置参数,仔细看看有没有打错字。
------解决方案--------------------------------------------------------
其它能运行的也是11.5?下了个11.5的SQL语法,其中没有递归(CONNECT BY ),检查一下 
  相关解决方案