We have a front end application that accesses DB2 via UDB. When the following query is executed from the front end application,
SELECT * FROM TABLE1 WHERE USER != 'USER1';
we get the error message
'com.bt.cfb.exception.CFBSystemException: Unexpected SQL error while accessing TABLE1 tableCOM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2] SQL0104N An unexpected token "!" was found following "". Expected tokens may include: "< >
= <> <= ]< ]> ]= >= ^< ^> ^= IN NOT ". SQLSTATE=42601'
which says that the character '!' is not supported. But the same query ran fine in the test machine with the same UDB specifications.
Can someone please tell why this is not working in one UDB while it works fine in another.
SELECT * FROM TABLE1 WHERE USER != 'USER1';
we get the error message
'com.bt.cfb.exception.CFBSystemException: Unexpected SQL error while accessing TABLE1 tableCOM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2] SQL0104N An unexpected token "!" was found following "". Expected tokens may include: "< >
= <> <= ]< ]> ]= >= ^< ^> ^= IN NOT ". SQLSTATE=42601'
which says that the character '!' is not supported. But the same query ran fine in the test machine with the same UDB specifications.
Can someone please tell why this is not working in one UDB while it works fine in another.