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
Which component is responsible for db2 startup and shutdown?
Is db2 relational database?
What is database alias db2?
What is the role of union all and union
What is concurrency?
How to check table size in db2 sap?
Why db2 is called db2?
Differentiate between cs and rr isolation levels? Where do you specify them?
Mention a credible reason why select* is never given preference in an sql program that has been embedded.
What is db2 catalog database?
What is the maximum number of columns in a db2 table?
can all users have the privilage to use the sql statement select * (dml)?
What kind of database is db2?
In an sql table that is embedded, what is the procedure to retrieve rows that are part of a db2 table?
Before you give the explain statement, what are the prerogatives?