What is the difference between Primary key and
unique index?

Answer Posted / guest1

Using the Primary Key you can establish referential
integrity. Unix index will be created upon the Primary Key
column, and the data will be seperately placed in the Index
space. If you have not created Unix Index, while accessing
the table it leads to SQLCODE = -540

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we insert update delete in view?

583


What does sqlcabc has?

635


What are the benefits of using the db2 database?

666


Explain the contention situations caused by locks?

599


What is a Foreign Key?

666






Why cursor is used in db2?

579


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

649


Explain db2.

628


Explain how can you do the explain of a dynamic sql statement?

666


Can we delete records from view?

569


Can you tell me how can you find out the # of rows updated after an update statement?

621


What is temporal table in db2?

609


What is a collection in db2?

586


Why do we bind in db2?

638


Define sqlca.

655