DB2 SQL Error: SQLCODE=-803, SQLSTATE=23505, SQLERRMC=2.
1, check under, probably means to violate the uniqueness constraints ah!
2. However, I found in DB2 DESCRIBE table XX that only ID of the table cannot be empty.
3, finally, directly wrote a SQL execution on the command line, the same error and code
Finally, I looked up the index in the following table and realized that a composite index had been created.
It turns out that the DBA created a unique constraint and index yesterday!
Although only ID cannot be null in a describe, the addition of a unique constraint and index results in the inability to insert data.
1, check under, probably means to violate the uniqueness constraints ah!
2. However, I found in DB2 DESCRIBE table XX that only ID of the table cannot be empty.
3, finally, directly wrote a SQL execution on the command line, the same error and code
Finally, I looked up the index in the following table and realized that a composite index had been created.
It turns out that the DBA created a unique constraint and index yesterday!
Although only ID cannot be null in a describe, the addition of a unique constraint and index results in the inability to insert data.
Read More:
- DB2 SQL error: SQLCODE: -433, SQLSTATE: 22001, SQLERRMC
- DB2 SQL Error: SQLCODE=-104, SQLSTATE=42601, SQLERRMC=;;,?,?,?,?,?,?,?,?);END-OF-STATEMENT
- Error when connecting to database: DB2 SQL error: sqlcode = – 204, sqlstate = 42704, sqlerrmc= YXUAT.CUST_ BLK_ REL, DRIVER=4.25.13
- Solve a bug harvest of DB2 (sqlcode = – 805, sqlstate = 51002, error message = DB2 SQL error: sqlcode = – 805, sqlstate = 5100
- DB2 SQL ERROR: SQLCODE=-803, SQLSTATE=23505, SQL
- DB2 SQL error: sqlcode = – 433, sqlstate = 22001 solved
- DB2 SQL Error: SQLCODE=-206, SQLSTATE=42703
- DB2, create stored procedure error, sqlcode = – 104, sqlstate = 42601, PSM_ semicolon
- SQLCODE=-551, SQLSTATE=42501 error resolution
- DB2 encountered the problem of sqlcode = 911 lock table when updating record update
- SQL Error: 1452, SQLState: 23000
- SQL Error: 17059, SQLState: 99999
- SQL Error: 904, SQLState: 42000
- SQL error: 17006, sqlstate: 99999 invalid column name
- DB2 create table error – 104 42601 illegal symbol encountered in SQL statement
- SQL Error: 0, SQLState: 08S01 & Communications link failure
- DB2 sql5005c system exception
- How to Fix SQL Error: 1054, SQLState: 42S22 Unknown column ‘markcardex0_.art_service_time’ in ‘field list’
- SQL error: 156, sqlstate: S1000 error encountered in Hibernate
- Log error SQL Error: 1062, SQLState: 23000