Replace() 是否删除子 table 行?
Does Replace() remove child table rows?
我正在使用 replace
operation,因为 - 如果行已经存在 - 我希望将未指定的值设置为 NULL。如果我要替换的 table 行有子 table 行,相应的子 table 行会被删除吗?
是的。
您可以将 replace
视为指定行的 delete
——加上所有嵌套的子 table 行 —— 后跟 insert
新行。
我正在使用 replace
operation,因为 - 如果行已经存在 - 我希望将未指定的值设置为 NULL。如果我要替换的 table 行有子 table 行,相应的子 table 行会被删除吗?
是的。
您可以将 replace
视为指定行的 delete
——加上所有嵌套的子 table 行 —— 后跟 insert
新行。