adspace
How to add Foreign key in a table after the creation of the
table?
Answer Posted / subbu
You cannot add foreign key after creation of the table until
unless you have assigned the primary key while creating the
table. I mean without a primary key assigned for a table, we
cannot add foreign key.
Once the primary key is found, then query to add is been
already given by the above posters.
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
how many tables will create when we create table, what are they? : Sql dba
What is the best sql course?
Do we need to rebuild index after truncate?
Is primary key always clustered index?
what is bcp? When does it used? : Sql dba
what is collation? : Sql dba
define sql insert statement ? : Sql dba
What is the current version of sql?
how to escape special characters in sql statements? : Sql dba
how to start mysql server? : Sql dba
what is sql server agent? : Sql dba
Can we rollback truncate?
what are the advantages of sql ? : Sql dba
Is inner join faster than left join?
What is the current version of postgresql?