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

could you give me an example how, where i code CHECKPOINT and restart...I need and example....thanks..

5 Answers  


what is db2 restart?

0 Answers  


What is cursor in dbms?

0 Answers  


What is the difference between cursor and select statement?

0 Answers  


Suppose we have a query for update update table1 set col1 = 'val1' where col2=(select .... from ...) suppose the subquery does not return any record, what will happen to update?

1 Answers   IBM,


how to resolve -811

2 Answers   IBM,


What is the role of the data page in the db2 database?

0 Answers  


Define sqlca.

0 Answers  


How is the SUBSTR keyword used in sql?

1 Answers  


What is precompiler in db2?

0 Answers  


What is the function of the Data Manager?

2 Answers  


What are the Isolation levels possible ?

5 Answers  


Categories