what is primary key,unique key, foreign key? can u teach me
in simple language?

Answer Posted / kranthi

primary key: primary creates a clustered index on the
column and it doesn't allow null values.

unique key: unique key creates non clustered index by
default.it allows "one null value".

foreign key: A foreign key (FK) is a column or combination
of columns used to establish and enforce a link between the
data in two tables

Is This Answer Correct ?    212 Yes 76 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between sql and mysql?

1629


Should I store images in database?

584


Explain transaction manager?

619


How do you pass parameter in stored procedure?

732


When should you not use firebase?

609






How to do Stored procedure testing? Who does this testing (Developer or tester)?

1387


What is the role of driver manager?

589


Why do we need distributed database?

544


What is a trace file?

636


What is the database url?

554


What are the most common databases?

540


Why merge statement is used inside the database?

638


What is Object Oriented model?

620


What is database server and how it works?

555


What does new grouping sets enables you to do?

601