How to resolve -803 sql code in DB2?
Answers were Sorted based on User's Feedback
Answer / lakshmi
This error is thrown when you try to insert a row with
existing primary key i.e.Duplicate. If you want to insert
the row either you should delete the already existing row
and insert the new row or update the same row with the new
values for other fields
| Is This Answer Correct ? | 22 Yes | 8 No |
Answer / venkata sastry
The SQL - 803 error occurs on the violation of a UNIQUE
constraint. Update the record if it already exists rather
inserting new one.
| Is This Answer Correct ? | 15 Yes | 6 No |
Answer / lu
Before to insert, it's better to select(retrieve),test
sqlcode when 100 insert when 00 update whenever send
message and abend...You don't have an heache....
| Is This Answer Correct ? | 5 Yes | 3 No |
How do you find the maximum value in a column in db2?
What is cobol db2?
What is a bind in db2?
What are some SQL aggregates and other built-in functions?
What is role in db2?
What is db2 look?
How do you run JCL in cobol program
What is the difference between a package and a plan?
6 Answers Infosys, L&T, Mphasis,
wht is d/f between union and joins ?
Why select is not preferred in embedded sql programs?
Mention a credible reason why select* is never given preference in an sql program that has been embedded.
What is a clustered index?