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 db2 catalog database?

0 Answers  


What is data manager?

0 Answers  


How to fetch the last row from the table in SQL (db2)?

0 Answers  


What is access path in db2?

0 Answers  


in my project..TEST is db2 8.1 version In PROD it is 7.1 if i do REORG in TEST.. can I use the same REORG jcl with out modification in PROD region (this is DB2 8.1 )? if not, what modification i need to do in my REORG control card?

0 Answers  






Under what circumstances will DB2 allow an SQL statement to update more than one primary key value at a time?

1 Answers  


What is a bind in db2?

0 Answers  


What is Call attach facility? How does it work?

1 Answers   Syntel,


AGGREGATE function support by DB2. A) SUM & AVG B) SUM, MIN & AVG C) SUM, MAX, AVG , MIN &COUNT D) NONE

2 Answers   Accenture,


What does the RUNSTATS Utility do?

4 Answers  


What is an instance database?

0 Answers  


what is the difference between join and union?

4 Answers   IBM,


Categories