I have a simple table that contains 3 rows: a short text, its own ID and ID of another object.
I want to lose the association with that another object. I want to set its ID to 0 (such object does not exist). I can not use NULL because of other reasons.
Please help me to set table or row in MySQL Workbench to allow performing such operation.
You can’t “force” a value that violates a foreign key. That’s the whole point of foreign keys.
You’ll have to either
NULLvalues and set the value toNULL(that’s what it’s for, and this is the correct way),