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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

For a db2 column that is being defined as decimal (11, 2), discuss the cobol picture clause.

749


What is dbrm? What it contains?

789


Explain correlated sub-queries.

663


How do I start db2 in windows?

657


List out the buffer pools in db2

722






What is dbrm in db2 database?

664


Explain dclgen.

808


Explain what are the various isolation levels possible?

675


What is schema in db2?

665


What is load replace in db2?

641


How can deadlocks be resolved?

625


What is the role of schema in the db2 database?

756


How does db2 sample database connect?

652


What is commit in db2?

687


What is an instance in db2?

646