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 / satya prasad n
The PRIMARY KEY cannot be null. you can insert ZERO into
that but should not be null. It will throw an error if you
try to inserts a NULL.
| Is This Answer Correct ? | 8 Yes | 4 No |
Post New Answer View All Answers
How do I change the column size in db2?
When the like statement is used?
What is the syntax for seeing the columns and data types of a table in the db2 database?
Explain the function of data manager.
Which isolation level provides maximum concurrency?
What is catalog database in db2?
What is difference between isnull and coalesce?
What is coalesce in db2?
How is the value function used?
What are db2 tables?
What is database alias db2?
How to run db2 command in windows?
How to test SQL -911 error while developing COB-DB2 program
What is null indicator in db2?
Where can you declare a cursor in a cobol-db2 program?