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 is an inconsistent dependency?

991


What is rename command in sql?

960


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

906


What is rownum?

930


What are the two virtual tables available at the time of database trigger execution?

1165


what is rdbms? : Sql dba

971


is mysql query is case sensitive? : Sql dba

1038


What is program debugging?

1156


What is the maximum number of triggers, you can apply on a single table?

955


Can dml statements be used in pl/sql?

1028


Write a sql query to convert all character to uppercase after hypen.

1387


Which constraints we can use while creating database in sql?

1028


what is the difference between sql and t-sql? : Transact sql

1052


What are the different types of database management systems?

957


What is the difference between function and procedure in pl/sql?

1026