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

Comment whether the cursor is closed during commit or not.

673


What are db2 tables?

647


Which command is used to connect to a database in DB2 ? Give the Syntax.

602


What is package in cobol db2?

702


What is host variable?

596






If anyone has IBM Certification Dumps pls forward to me & also let me know what are the Certification Codes that are available in DB2

1576


What is ibm db2 connect?

573


Is db2 free?

684


What is dbrm in db2 database?

589


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

658


Mention the way of highlighting as well as putting a cursor to use in a cobol program.

626


Give the name of some fields form sqlca.

611


How would you find out the total number of rows in a db2 table?

579


How do I add a column in db2?

591


What are catalog tables in db2?

606