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

Answers were Sorted based on User's Feedback



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

Answer / s

NOT NULL disallows nulls for the column. Primary Key must
be defined as NOT NULL or any key that you do not want to
have NULLS, becaue the default is that any column can
contain NULLs

Is This Answer Correct ?    1 Yes 0 No

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

Answer / andank

NOT NULL is the keyword used define columns, when create a
table. When you specify NOT NULL to a column, that column
can not hold NULL values.

Is This Answer Correct ?    1 Yes 0 No

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

Answer / s

CREATE UNIQUE WHERE NOT NULL INDEX index1
ON table(column);

WHERE NOT NULL ensures that non-null values are unique.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More DB2 Interview Questions

In case if at some point of time db2 is down, would that impact the pre-compilation process of a db2-cobol program?

1 Answers  


which SQL comment successfully removes uncommitted changes from a DB2 database A) rollback B) delete C) drop D) decommit

2 Answers   Accenture, Wipro,


Which isolation level provides maximum concurrency?

1 Answers  


What is a trigger in the db2 database?

1 Answers  


List out the buffer pools in db2

1 Answers  


What does DSNDB07 database do?

2 Answers  


why we go for SPUFI for creating tables or for sql queries?

4 Answers  


What is SPUFI?

4 Answers  


What is db2 command?

1 Answers  


DB2 is a A) data base/data communication system B) data base C) RDBMS D) Programming language

4 Answers   Accenture,


How to restart a DB2 program?

1 Answers   Cognizant,


What is cursor stability in db2?

1 Answers  


Categories