delete多个表时,记得在delete和from间加上要‘要删除内容所属表的别名’
DELETE t1 FROM test t1 INNER JOIN test t2 ON (t1.id = t2.parent) WHERE t2.id = 2 and t2.value = 'value'
delete多个表时,记得在delete和from间加上要‘要删除内容所属表的别名’
DELETE t1 FROM test t1 INNER JOIN test t2 ON (t1.id = t2.parent) WHERE t2.id = 2 and t2.value = 'value'