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
How do I save a sql query?
Which is faster count (*) or count 1?
What is cross join sql?
Explain the difference between triggers and constraints?
Can we update views in sql?
Is primary key an index?
Why do we use sqlite?
what are wild cards used in database for pattern matching ? : Sql dba
What is scalar function in sql?
Explain alias in sql?
Why is a trigger used?
What is secondary key?
How can I tell if sql is running?
Can procedure in package be overloaded?
How do temporal tables work?