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

DB2V9.7, Toad报SQL0401N的错误.

时间:2015-04-27 15:34:30      阅读:193      评论:0      收藏:0      [点我收藏+]

标签:sql0401


错误信息:

The data types of the operands for the operation "=" are not compatible or comparable.
   

原因:

db2set设置了DB2_COMPATIBILITY_VECTOR=ORA, DB2_DEFERRED_PREPARE_SEMANTICS=YES.



解决方法:


1) Keep DB2_COMPATIBILITY_VECTOR=ORA and set
DB2_DEFERRED_PREPARE_SEMANTICS=NO (需重启实例)


2) reset DB2_COMPATIBILITY_VECTOR to NULL


DB2V9.7, Toad报SQL0401N的错误.

标签:sql0401

原文地址:http://masaly.blog.51cto.com/9302075/1638958

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