Quote:
Originally Posted by krisdotca
If I define a foreign key using ON UPDATE CASCADE what happens if the corresponding row in the parent table is deleted?
|
nothing
ON UPDATE defines what happens when the corresponding key in the parent table is
updated
Quote:
Originally Posted by krisdotca
If not, can I use
"ON DELETE SET NULL ON UPDATE CASCADE" to ensure that both updates and deletes are handled properly?
|
only if those (set null and cascade, respectively) are the proper actions that you want done in the case of deletes or updates
