What is a primary key, and how is it different from a unique key?

Answer Posted / hr@tgksolutions.com

• Primary Key:
o Ensures each row in a table is unique.
o Cannot contain NULL values.
o A table can have only one primary key.
• Unique Key:
o Ensures all values in a column are unique.
o Can contain a single NULL value.
o A table can have multiple unique keys.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the two different parts of the pl/sql packages?

778


Enlist the characteristics of pl/sql?

1480


What are the different types of triggers?

763


what does it mean to have quoted_identifier on? What are the implications of having it off? : Sql dba

710


What is pl sql collection?

686






What does the argument [or replace] do?

799


Does sql use python?

750


What is a full join?

703


how to see the create table statement of an existing table? : Sql dba

724


What is %type in pl sql?

697


explain the advantages and disadvantages of stored procedure? : Sql dba

703


Can a commit statement be executed as part of a trigger?

791


Is crud a cuss word?

770


Why function is used in sql?

674


What is full join?

692