How to delete row in table that contain foreign keys to other tables but I don't want that the row in other table deletes, so I cant make use of CASCADE?
How can I do that?
How to delete row in table that contain foreign keys to other tables but I don't want that the row in other table deletes, so I cant make use of CASCADE?
How can I do that?
SET NULL
instead of CASCADE
.
If table has foreigh key it means that it is a child table; in this case you can delete rows with DELETE statement, parent table won't be modified.