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

Why we use sql profiler?

1023


What is keys and its types?

1123


Can we perform dml in function?

1134


How do you concatenate in sql?

1086


What is normalization in sql?

1067


What does pl sql developer do?

982


Inline the values in PL/SQL, what does it mean.?

1275


how can we transpose a table using sql (changing rows to column or vice-versa) ? : Sql dba

998


Why primary key is required?

1046


What are few of the schema objects that are created using PL/SQL?

1083


What are some emotional triggers?

1035


What is Difference Between Unique and Primary Key Constraints?

1155


What is procedure and function?

1035


What is example of database?

1134


What is the requirement of self-join?

1210