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

Answers were Sorted based on User's Feedback



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

Answer / s

NOT NULL WITH DEFAULT indicates that the column cannot
contain a NULL, if a user doesnt enter a value, DB2
generates the default.

Is This Answer Correct ?    20 Yes 1 No

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

Answer / kumar

Using 'NOT NULL WITH DEFAULT' you can also specify you own
values. INTEGER, SMALLINT will assigned with zero, CHAR,
VARCHAR will be assigned with spaces. DATE, TIME, TIMESTAMP
will be assigned with system DATE, TIME & TIMESTAMPE values
respectively.

As the table is declared with 'NOT NULL WITH DEFAULT',
there is no chance of getting the null values during data
fetch.

Is This Answer Correct ?    15 Yes 2 No

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

Answer / shankar

when we specified NOT NULL WITH DEFAULT in the query ,the
database will set the default values to that key eg. system
date ,time.

Is This Answer Correct ?    9 Yes 10 No

Post New Answer

More DB2 Interview Questions

What is the use of runstats in db2?

0 Answers  


How to find the maximum value in a column in the db2 database?

0 Answers  


OUTER JOINS USED TO GET MATCHING AND NONMATCHING ROWS FORM 2 OR MORE TABLES BASED ON COLUMNS. SIMPLE JOINS ALSO DO THE SAME THEN WHAT IS THE USE OF OUTER JOINS.

1 Answers   Syntel,


What is a clustered index?

1 Answers  


What is the difference between spufi and qmf?

0 Answers  






Is db2 a programming language?

0 Answers  


What's the Maximum Length of SQLCA and what's the content of SQLCABC?

2 Answers  


What is explain in db2?

0 Answers  


what is load and unload in db2

1 Answers   IBM,


What are the contents of a DCLGEN?

4 Answers   MetLife,


What should be specified along with a cursor in order to continue updating process after commit?

1 Answers   IBM,


What is a subselect? Is it different from a nested select?

1 Answers  


Categories