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
What is the connection string to connect to the DB2 Database ?
What is dbrm?
How to check table size in db2 sap?
Which command is used to connect to a database in DB2 ? Give the Syntax.
What is db2 and what is the use of db2 optimizer?
Mention the length of physical storage of the given data types of db2 – date, timestamp, time
What is the function of logging in the db2 database?
What is the picture clause of null indicator variable?
What is phantom read in db2?
What is the maximum size of a char data type in db2?
What are host variables in db2?
Mention the downsides of page level lock.
How does cobol compile db2 program?
Explain about rct.
How do you find the maximum value in a column in db2?