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
What is localdb mssqllocaldb?
What is a schema sql?
Is like operator in sql case sensitive?
what is the difference between a having clause and a where clause? : Sql dba
what is auto increment? : Sql dba
What is the maximum size of sqlite database?
Can we declare a column having number data type and its scale is larger than pricesionex: column_name number(10,100),column_name numbaer(10,-84)
What are literals in sql server?
How many indexes can be created on a table in sql?
Is it possible to link two groups inside a cross products after the cross products group has been created?
List the different type of joins?
What are the two virtual tables available at the time of database trigger execution?
How do I remove sql plus from windows 10?
Which data type is a composite type?
how can we know the number of days between two given dates using mysql? : Sql dba