SQLCODES for DB2 Version 7
Scroll down to see ALL the SQLCODES there are in Version 7.The most common ones are at thetop.SQLCODE +100SQLSTATE 02000Row not found or end of cursor SQLCODE -102String constant is too longSQLCODE -117The number of values you are trying to INSERT does not match thenumber of columnsSQLCODE -180SQLSTATE 22007Bad data in Date/Time/TimestampString representation of DATE, TIME, TIMESTAMP is invalidSQLCODE -181SQLSTATE 22007Bad data in Date/Time/TimestampValue for DATE, TIME, TIMESTAMP is invalidSQLCODE -199Illegal use of the specified keyword.SQLCODE -204Object not defined to DB2SQLCODE -205Column name not in specified tableSQLCODE-206Column does not exist in any table in the SELECTSQLCODE -216You need to use the same number of expressions on both sides of the comparison.when using multiple operands in a comparison,Correct example:WHERE (E.SALARY, E.COMM) IN(SELECT S.PAY, S.COMMISSIONIncorrect example:WHERE (E.SALARY, E.COMM,
E.BONUS
)IN(SELECT S.PAY, S.COMMISSION
Leave a Comment