What do you mean by NOT NULL WITH DEFAULT? When will you
use it?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
When Can you be sure that a query will return only one row?
DB2 can implement a join in three ways using a merge join, a nested join or a hybrid join. Explain the differences?
What is dclgen (declaration generator)?
How do I optimize a query in db2?
What is FREEPAGE and PCTFREE in TABLESPACE creation?
What is the maximum size of varchar data type in db2?
What is package in cobol db2?
how can you access index
i want to delete 20th million record how ?
I understand Join always perform better than subqueries. Then what is the advantage/use of Subqueries/correlated subqueries etc.,in DB2 programming.Please explain.
In an sql table that is embedded, what is the procedure to retrieve rows that are part of a db2 table?
What is query for your birthday date should be in hours,minute and seconds format?