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 |
Q4. How will you get the count of record without using COUNT verb in query?
how to check the table is empty or not?
Which component is responsible for processing sql statements and selecting access paths?
What is image copy in db2?
How do you retrieve the data from a nullable column?
explain about index with examples
In my table having 100 Rec. How can I delete the 7th row?? (we don't know what is data inside the table)
What does a deadlock mean in DB2?
what is the sqlcode -501
Before you give the explain statement, what are the prerogatives?
What is a view? Why use it?
What is a thread?