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 / devi

alter table table2
add(constraint table2_col2_fk foreign key(col2) references
table1(col1);
here col2 is the foreign key of table2 which refer to the
col1 of table1 which is h epimary key of table1

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is better stored procedure or query?

956


What is union and union all keyword in sql and what are their differences?

1100


How to return an array from java to pl/sql?

1132


What is basic structure of pl sql?

1066


What is the difference between numeric and autonumber?

996


What is t sql used for?

1010


Is trigger a stored procedure?

932


What are local and global Indexes and where they are useful.

1440


What is an oracle stored procedure?

1048


Which is faster union or join?

967


What steps server process has to take to execute an update statement?

974


What is record type in pl sql?

984


What is not null in sql?

1053


What is a primary key called that is made up of more than one field?

1344


How do I tune a sql query?

973