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

How do I save a sql query?

1018


Which is faster count (*) or count 1?

1036


What is cross join sql?

921


Explain the difference between triggers and constraints?

979


Can we update views in sql?

942


Is primary key an index?

996


Why do we use sqlite?

985


what are wild cards used in database for pattern matching ? : Sql dba

1145


What is scalar function in sql?

1044


Explain alias in sql?

1051


Why is a trigger used?

945


What is secondary key?

935


How can I tell if sql is running?

1067


Can procedure in package be overloaded?

1086


How do temporal tables work?

964