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

Why do we need to create an alias if we can directly use the table name? What are the benefits of referring a table name by its alias? Also, when should we go for alias and when for synonyms?

1 Answers  


What happens to a cursor after a commit?

3 Answers  


What is correlated subquery?

1 Answers  


I HAVE 500 ROW TO UPDATE I WOULD LIKE TO USE ROLLBACK ALONG WITH COMMIT.WHAT IS THE SYNTAX TO CODE COMMIT AND ROLLBACK FOR EVERY 100 ROWS.AND HOW THE CURSOR ROLLBACK TO THE LAST COMMITTING POINT.

0 Answers   ITC Infotech, Syntel,


What is IMAGECOPY ?

6 Answers  






What are the disadvantages of using VARCHAR?

3 Answers  


how to unload different table data into different gdg files/ vsam files.

3 Answers  


what is the soft code for deadlock ?

2 Answers   Logica CMG,


What are the contents of a dclmgen?

0 Answers  


Which is faster delete or truncate?

0 Answers  


Which are the db2 tools to protect integrity of the database?

0 Answers   IBM,


What is normalization and what are the five normal forms?

1 Answers  


Categories