SQL Server Null Parent field when lookup item is deleted

scyqe7ek  于 2023-08-02  发布在  其他
关注(0)|答案(1)|浏览(92)

Lets say I have a parent table and a lookup table. The parent table references the lookup table. I want to be able to set the parent field to null if I delete the row from the lookup table that it references.

On delete or on cascade isnt working, or I am setting it wrong. I don't want to delete the parent row just update the referenced field to null if I delete the item from the lookup table.

相关问题