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 rownum?

538


What is field delimiter?

635


Explain the difference between drop and truncate commands in sql?

534


Is mariadb nosql?

586


What is case function?

601






What is a unique key and primary key and foreign key?

567


What is the use of stored procedures?

519


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

511


What is pl sql architecture?

500


What is a primary key sql?

561


What is trigger with example?

565


Why do you partition data?

536


What is cold data?

505


What is scalar data type in pl sql?

554


What are the popular database management systems in the it industry?

567