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 / sangeetha

There cannot be null values in a Primary Key column.
It will result in error code.

Is This Answer Correct ?    26 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible using max on a char column?

889


What does sqlcabc has?

814


Where can you declare a cursor in a cobol-db2 program?

803


What is a db2 schema?

1004


What is the difference between "db2ilist" and "db2 get instance" commands in DB2 Database Server?

1016


What is the maximum size of a char data type in db2?

794


What is the latest version of ibm db2?

991


How does a cursor work?

775


What is cloudant database?

862


What is innodb buffer pool?

778


What is dclgen (declaration generator)?

833


What does db2 stand for?

789


What do you mean by rollback?

764


What is the max length of sqlca?

991


How do I import a csv file into db2?

777