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

Why is a trigger used?

695


How many types of functions are there in sql?

666


how to check server status with 'mysqladmin'? : Sql dba

784


How will you distinguish a global variable with a local variable in pl/sql?

839


State few characteristics of pl/sql?

723






What are pl/sql cursors?

728


What is database migration?

696


Can a table contain multiple foreign key’s?

741


Which are the different character-manipulation functions in sql?

719


how to get help information from the server? : Sql dba

677


What is left inner join in sql?

722


What is sap sql?

717


What are the benefits of triggers?

893


Explain how can you save or place your msg in a table?

775


What is online transaction processing (oltp)?

749