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

Are views updateable?

647


What is lock escalation in db2?

578


Which components manage deadlocks in db2?

615


Are view updateable?

631


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

756






How do I change the column size in db2?

600


What does a deadlock mean in DB2?

653


How do you pull up a query which was previously saved in qmf?

678


What does reorg do in db2?

578


Explain the function of data manager.

637


What is meant by dclgen?

620


Suppose pgm A calling Pgm B .Pgm B has some Db2 program. at the time of compilation should plan and package will be created for both A and B or only B? What is the concept?

6868


What is check constraint. Explain with example.

650


How does a cursor work?

560


Is the primary key a clustered index?

615