专注于互联网--专注于架构

最新标签
网站地图
文章索引
Rss订阅

首页 »数据库 » sql转义:SQL查询中的转义序列不对的解决办法 »正文

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

来源: 发布时间:星期三, 2008年9月10日 浏览:200次 评论:0

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

create PROCEDURE test ()
 BEGIN
  Print 'Replace this Print line with your SQL statements' ;
  insert into employee location'ww.demodb' {select * from employee_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.

  

0

相关文章

读者评论

发表评论

  • 昵称:
  • 内容: