Alter Sql table (Change foreign key to Second primary of the table)
Posted
by vix
on Stack Overflow
See other posts from Stack Overflow
or by vix
Published on 2010-04-03T04:15:42Z
Indexed on
2010/04/03
4:23 UTC
Read the original article
Hit count: 364
Hi,
I've a sql table with a primary key(Auto Incremented) and a foreign key.Now I need to modify the table by modifying the foreign key to second primary key so that its values are not allowed to duplicate.
How do i alter my table without affecting the data? Need the sql code.
Regards, Vix
© Stack Overflow or respective owner