Can a primary key have null values? If we try to insert a
null value in a primary key column, will it work or give an
error code?
Answer Posted / guest
A primary key can have a NULL value. The error will be
shown only when NOT NULL is defined in the table creation.
| Is This Answer Correct ? | 10 Yes | 10 No |
Post New Answer View All Answers
Name the various locking levels available?
How to find the number of rows in db2 tables?
what is db2 restart?
How will you return the number of records in table?
Can you tell me how can you find out the # of rows updated after an update statement?
What is netezza database?
What is nvl in db2?
DB2 can implement a join in three ways using a merge join, a nested join or a hybrid join. Explain the differences?
Mention data types used in db2 ?
What is the maximum size of a char data type in db2?
Can there be more than one cursor open for any program?
What does db2 plan contain?
How can you classify the locks in db2?
Define predicate?
List some fields from sqlca?