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

How to take backup of table in db2?

814


On which levels locks can be applied?

865


what is a corelated subquerry?

836


How do I import data from excel to db2?

836


Is db2 a programming language?

796


What is dbrm?

864


Why cursor is used in db2?

767


What is the maximum size of varchar data type in db2?

860


What is cobol db2?

741


How and when does the db2 enforces the unique key?

854


What is access path in db2?

740


Explain db2.

815


Is db2 relational database?

741


How can the duplicate values be eliminated from db2 select?

866


How to test SQL -911 error while developing COB-DB2 program

7091