How to resolve -407 sql code in DB2?

Answer Posted / anandrao

This error occures when you are assigning NULL value to NOT
NULL column.
You can wrap the variable with coalesce/value and default
it but it is totally dependant on business logic.

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why db2 is called db2?

670


Can we update view in db2?

652


Why do chiropractors use drop table?

776


Mention the length of physical storage of the given data types of db2 – date, timestamp, time

678


What is a buffer in memory?

684






Which component is used to execute the sql statements?

724


What is meant by dclgen?

704


How does db2 sample database connect?

652


Mention the location where the output received from explain statement is stored.

713


What is a db2 table?

684


What is the cobol picture clause of the db2 data types date, time, timestamp?

705


While unloading huge amount of data from table. Suddenly job failed some error. Imagine 1M data unloading, In that 90% data unloaded only 10% left, So if want to unload the rest 10% what needs to be done? Whether do i need to start from top or anything ?

1918


Cursors can be declared in both working-storage & procedure division, agreed. But is there any difference? If could you please suggest what is the difference

859


What is ibm db2 database?

621


Is the primary key a clustered index?

722