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

A primary key can have a NULL value. The error will be
shown only when NOT NULL is defined in the table creation.

Is This Answer Correct ?    10 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is performance tuning db2?

846


What are packages in db2?

799


What is scrollable cursor in db2?

810


What is the clustering index in the db2 database?

758


What is dbrm?

868


Why do we bind in db2?

894


How to compare data between two tables in db2?

854


what is db2 restart?

1911


What is syscat in db2?

783


What is cascading rollback?

863


What is runstats db2?

782


What is db2 optimizer?

1004


Define check constraint.

850


What is database alias db2?

877


What is data manager?

810