DELETE FROM table1 t1, table2 t2 WHERE t1.id = 1 AND t2.parent_id = t1.id
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)