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 will you return the number of records in table?
Which component is responsible for processing sql statements and selecting access paths?
How to compare data between two tables in db2?
What is database reorganization?
How to check last update on table in db2?
What is temporal table in db2?
What is buffer pool in the db2 database?
What is null in db2?
How do I import data from excel to db2?
What is clone table?
How to retrieve rows from a db2 table in embedded sql?
Where can you declare a cursor in a cobol-db2 program?
What is the purpose of rollback and commit?
Explain the function of data manager.
What is sqlca?