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 to find the number of rows in db2 tables?
What type of database is db2?
Mention the length of physical storage of the given data types of db2 – date, timestamp, time
define clustering index.
What is the difference between dbm cfg and db cfg file in db2 ?
What is host variable in db2 cobol?
What is the use of value function?
What is the use of db2?
Mention the location where the output received from explain statement is stored.
Explain the contents that are a part of dclgen.
Explain package in db2 and its advantages?
What is the maximum No of rows per page?
What is the difference between "db2ilist" and "db2 get instance" commands in DB2 Database Server?
Is db2 a mainframe database?
File not opened because library is *PROD and debug is UPDPROD(*NO). ? what may be the reason? how to solve it..?