我想在单个查询中从子表和父表中删除记录。请找到下面给出的查询。这里的响应头是主表,responseid 是主键。
DELETE FROM responseheader
FROM responseheader
INNER JOIN responsepromotion ON responseheader.responseid = responsepromotion.ResponseID
INNER JOIN responseext ON responsepromotion.ResponseID=responseext.ResponseID
WHERE responseheader.responseid In ('67D8B9E8-BAD2-42E6-BAEA-000025D56253')
但它的抛出错误。谁能帮我找出正确的查询