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

Answer Posted / sriniwaas41

dublicate values- means two same values not allowed

primary key:does not allow null values and does not allow
dublicate v
alues
-reapeated values and null values not allowed
-we can use primary key only once in a table

unique key:
-reapeated values not allowed as per primary key.
-but the difference is null values are allowed
-another difference is we can declare more thatn one
unique column in a table.primary is not allowed

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between specialization and generalization?

584


What is a Database?

597


define primary key index, bitmap index, hash index,virtual indwx

2850


Can a database table exist without a primary key?

540


What is ole db used for?

586






Design an ETL process( batch job/script)from source to starting that u will not be dependent on the source in the near future?please elobarate details on what are things to consider.if you'd like to do a diagram that will be great.please answer it

1696


hai if any one having any project sample table structure please froward to my mail id tauseefwst@yahoo.com

1948


What is database schema name?

582


How heap is implemented in database?

644


What are the disadvantages of views in a database?

545


What is difference between data and database?

557


List some advantages of dbms.

710


Explain the table term used in database.

577


Does facebook use graph database?

609


What is meant by distributed system?

539