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

In an sql table that is embedded, what is the procedure to retrieve rows that are part of a db2 table?

850


What do you mean by between and in? Is between inclusive of specified range values?

869


What is the cobol picture clause of the db2 data types date, time, timestamp?

837


Explain package in db2 and its advantages?

846


Which component is responsible for db2 startup and shutdown?

811


What is the use of db2?

791


Which isolation level provides highest data integrity?

815


Before you give the explain statement, what are the prerogatives?

780


What is the difference between nvl and coalesce?

816


What is load utility in db2?

889


How many types of page locks can be held in db2?

811


Can we insert update delete in view?

755


What is reorg?

843


What is the difference between bind and rebind in db2?

1184


How to access db2 tables in mainframe?

801