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
Explain about rct.
How do I create a view in db2?
Which component is responsible for db2 startup and shutdown?
How many databases are there?
What is dclgen in db2?
How to check sequence on a table in db2?
What is dbrm in db2 database?
can all users have the privilage to use the sql statement select * (dml)?
Hello All, We have requirment to Replace BMC Db2 Load product thru CA FAST LOADPlus product. Do anyone have JCL to for FAST LOADPLUS and what all are thing need to take in consideration.
What is db2 catalog database?
What are bind parameters in db2?
Mention a credible reason why select* is never given preference in an sql program that has been embedded.
How is a typical db2 batch pgm executed?
What is catalog database in db2?
Comment whether the cursor is closed during commit or not.