How to add Foreign key in a table after the creation of the
table?
Answer Posted / sagar98
ALTER TABLE <table_name>
ADD CONSTRAINT <fk_name> FOREIGN KEY (column_name)
REFERENCES <table_name_where_this_column_acts_as_PK>
(Column_name)
| Is This Answer Correct ? | 19 Yes | 0 No |
Post New Answer View All Answers
What is crud stand for?
Enlist the characteristics of pl/sql?
What is graph sql?
Which table is left in join?
how to see the create table statement of an existing table? : Sql dba
What is varray in pl sql?
how do you know if your mysql server is alive? : Sql dba
What is difference between db2 and sql?
What is the difference between clustered and non-clustered indexes?
what is try_catch block in procedure
what is sql profiler? : Sql dba
Name some usages of database trigger?
What is AUTH_ID and AUTH_USER in pl/sql ?
How do you optimize a query?
What trigger means?