Skip to content
Advertisement

i getting this error: The ALTER TABLE statement conflicted with the FOREIGN KEY constraint “foreign_key1”

Advertisement

Answer

In MySQL you can use this:

OR:

you can see Here.

I can advise you to declare the same length as the name column. es. varchar(50)

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement