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

what is msql? : Sql dba

988


What is difference between sql and mysql?

1133


Is left join same as inner join?

1130


What is localdb mssqllocaldb?

1068


Which column in the user.triggers data dictionary view shows that the trigger is a pl/sql trigger?

1038


Where not exists in sql?

979


Which join is like an inner join?

1027


Explain what is a field in a database and record in a database?

1097


What is $$ in sql?

992


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

1086


explain what is mysql? : Sql dba

1082


Show how functions and procedures are called in a pl/sql block.

1127


What is data control language (dcl)?

1137


What is pl/sql table? Why is it used?

1045


How many row comparison operators are used while working with a subquery?

1030