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 oracle sql developer?

605


Is like operator in sql case sensitive?

509


Can we use joins in subquery?

539


Is left join faster than inner join?

616


What is sql character function?

543






What is parallel hint?

750


Can we use commit inside a trigger?

529


How to execute a stored procedure?

563


what is oltp (online transaction processing)? : Sql dba

533


What port does sql server use?

510


What are the types of subqueries?

573


what is cross join? : Sql dba

575


How many types of cursors supported in pl/sql?

594


Can unique keys be null?

486


Is a secondary key the same as a foreign key?

490