What if we fail to give values in columns declared as NOT
NULL ?

Answers were Sorted based on User's Feedback



What if we fail to give values in columns declared as NOT NULL ?..

Answer / santy

we will get the sql error code "-407"

-407 :- An UPDATE, INSERT or SET VALUE is NULL, but the
object column cannot contain the NULL values.

Is This Answer Correct ?    7 Yes 0 No

What if we fail to give values in columns declared as NOT NULL ?..

Answer / mani

the above mentioned will happen provided there is no default
value specified at the time of defining the table.

Is This Answer Correct ?    1 Yes 0 No

What if we fail to give values in columns declared as NOT NULL ?..

Answer / santy_rathod007@yahoo.co.in

Please correct the above error defintation :-

-407 :- An UPDATE, INSERT or SET VALUE is NULL, but the
object column defiend as NOT NULL values.

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More DB2 Interview Questions

What is a clustered index?

1 Answers  


Is db2 free?

0 Answers  


how to resolve -805 . how to see dbrm and package not found

2 Answers   IBM,


1) I have 3 programs : PGMA, PGMB, PGMC. PGMA calls PGMB and PGMB calls PGMC. I have to do inserts, updates in all the 3 pgms. 2) Say PGMC has done its work successfully and returned to PGMB 3) PGMB had an SQL error while doing some update 4) PGMA has already done some updates before calling PGMB all are running under the same CICS region. What will happen if I issue SYNCPOINT ROLLBACK in PGMB when it abends ? Does all the changes in PGMA,B,C rollback ? (because all the pgms belong to same task).

1 Answers  


What are iseries servers?

0 Answers  






When Can you be sure that a query will return only one row?

4 Answers   IBM,


the dd name for ksds is dest1 and what is the dd name for alternate index of ksds ? a.dest b.dest1 c.dest1a d.dd1

2 Answers   Logica CMG,


What is a PLAN table? How will you use it? Give the various fields of PLAN table?

1 Answers   Accenture,


What is the function of the Data Manager?

2 Answers  


Can we able to find all the Table names under a Particular Plan?

1 Answers   CTS,


How can you find out the # of rows updated after an update statement?

0 Answers  


Once you create a view, where would information about the view be stored?

1 Answers  


Categories