Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to add Foreign key in a table after the creation of the
table?

Answer Posted / purushotham

we can add a foreign key to a table
1)while creation of table
2)After the creation of the table

by using
Alter table table_name add foreign key(column_name)
References column_name from table_name(that consists of
primary key)

Is This Answer Correct ?    7 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of sql? Explain

1095


How to rename a column in the output of sql query?

1070


What are the differences between in and exists clause?

1107


How do I find sql profiler?

933


What are the parts of a basic sql query?

962


What are the different tcl commands in sql?

1170


What is difference between function and trigger?

1044


Explain lock escalation? : Transact sql

1192


What are some predefined exceptions in pl/sql?

1162


What is the difference between delete and truncate statement in sql?

1064


Can we create clustered index without primary key?

962


How does index help in query performance?

1025


Why do we use cursors?

984


explain what is mysql? : Sql dba

1078


Can a view be mutating? If yes, then how?

1022