What is difference b/w composit key n primary key and
forigion key?

Answer Posted / sathish

Assume a table contains columns
book name
author name
price

>>composite key

Having multi column primary key for a single table is known as composite key.

ex: primary composite key is book name and author name

>>primary Key

Primary key is the unique key, do not accept null value and used as a id to fetch the record from the table.

>> Foreign Key

A primary key of a table which is used as a reference key of another table..

Is This Answer Correct ?    16 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to convert character strings to numeric values?

624


What is the command used to create a database using php and mysql?

664


What is mysql in dbms?

495


How to validate email addresses in mysql?

605


Consider you have the following three tables which have to be linked together.

508






Is mysql free download?

492


What is difference between oracle and mysql?

508


What are the mysql database files stored in system ?

513


how to add a new column to an existing table?

569


In how many ways we can retrieve the data in the result set of MySQL using PHP? What is the difference between mysql_fetch_object and mysql_fetch_array ?

547


How do I start mysql in ubuntu?

486


How do you restart mysql?

489


How do I zip a file in mysql?

551


What are the 'mysql' command line options?

513


What is datatype in mysql?

483