"" , . , " " .
, , update , Deleted 1.
However, if I wanted to delete the rows exactly, I would use the explicit delete operator, not the ON DELETE CASCADEforeign keys.
delete Observation
where ObservationTypeId = 1
delete ObservationType
where ObservationTypeId = 1
I am trying to avoid using implicit ON DELETE CASCADEsince this can lead to hidden dangerous unexpected hits. If the entire database is built on the cascading deletion of a foreign key, someone can mistakenly delete the contents of the entire database by simply deleting one table that is referenced in all other tables. In short, I find ON DELETE CASCADEto solve the error problem.
source
share