开发者

database foreign key constraint

开发者 https://www.devze.com 2023-01-05 21:22 出处:网络
I have tables a and b; b references a via foreign key. I copied a using: create table c select * from a;

I have tables a and b; b references a via foreign key.

I copied a using:

create table c select * from a;

Now, I want to delete c only, but I got a foreig开发者_StackOverflown key constraint error. How do I remove c without removing b?


Delete the foreign keys, then the table.

0

精彩评论

暂无评论...
验证码 换一张
取 消