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

u have create two tables an the time one in first table must an should using primary key .in way of using ddl cmd.
A)alter table table name add fk(clm name) reference column name from table name consists of primary key

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between group by and partition by?

1128


Explain normalization and what are the advantages of it?

1000


what is 'mysqladmin' in mysql? : Sql dba

1076


What are the datatypes available in pl/sql ?

1155


How can we optimize a sql query?

1110


Can we use commit inside a trigger?

1147


What's the procedure?

984


Define tables and fields in a database

1181


does sql support programming? : Sql dba

1088


What is difference between my sql and sql?

1140


Difference between table function and pipelined function?

1082


How run sql*plus commands that are stored in a local file?

1116


which operator is used in query for pattern matching? : Sql dba

1045


What is secondary key?

989


What are properties of the transaction?

1045