DB2V9.7, Toad报SQL0401N的错误.


错误信息:

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


你可能感兴趣的:(Toad,错误,SQL0401)