How to resolve -803 sql code in DB2?

Answers were Sorted based on User's Feedback



How to resolve -803 sql code in DB2?..

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

How to resolve -803 sql code in DB2?..

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

How to resolve -803 sql code in DB2?..

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

Post New Answer

More DB2 Interview Questions

What is dbrm? When it will be created?

0 Answers  


What do you mean by NOT NULL WITH DEFAULT? When will you use it?

3 Answers  


Can you define an Index if the table size less than 10 PAGES?

1 Answers   IBM,


What is load utility in db2?

0 Answers  


What is a DB2 access path?

1 Answers  






What are the bind parameters ibm db2?

0 Answers  


What is plan in cobol db2?

0 Answers  


run jcl for cobol+db2 pgm?.. //jobcard //step001 exec pgm=ikjeft01 //systin dd * DSNSYSTEM(--------) RUN PROGRAM(MYPGMNAME) PLAN(-----), LIB(-------), PARMS(------) /* WHAT WILL U GIVE INSIDE THE BRACKETS... WHAT IS PLAN,PACKAGE,BIND?..PLAN N PACAKGES ARE GENERATED BY ?...

0 Answers   IBM,


What is performance tuning db2?

0 Answers  


What os does db2 run on?

0 Answers  


i have cobol+ db2 program but it contains n number of subprograms for this how many dbrm members i need to mention in bind process

2 Answers  


wht r the requirements for writing a cobol-db2 pgm ?

4 Answers   IBM,


Categories