tzlink 发表于 2008-11-18 14:02:11

SQL查询中的转义序列不对的解决办法

使用Sybase WorkSpace连接到Sybase IQ,执行如下SQL:

以下为引用的内容:
createPROCEDUREtest() 
 BEGIN 
  Print’ReplacethisPrintlinewithyourSQLstatements’; 
  insertintoemployeelocation’ww.demodb’{select*fromemployee_temp}; 
 END



SQL Result view返回如下错误:

JZ0S8: SQL 查询中的转义序列不对: ’{select * from employee_temp}’。

原因:

以下为引用的内容:
  By default, jConnect parses all SQL statements submitted to the database for valid JDBC function escapes.



解决办法:

1. 在Enterprise Explorer view中选择IQ connection profile, 从context menu中选择Properties.

2. 在Other Properties tab中,

加入connection property ESCAPE_PROCESSING_DEFAULT=false.

3. reconnect IQ connection profile.

http://www.chinaz.com/upimg/userup/0811/1Q145409518.jpg
页: [1]
查看完整版本: SQL查询中的转义序列不对的解决办法

网站推广