Cascading deletes aren’t setup on this particular database. Just wondering if there’s a way to do it in one swipe that’s more efficient than running two separate statements.
Cascading deletes aren’t setup on this particular database. Just wondering if there’s a way
Share
No.
You could do two statements on a single command:
DELETE FROM ChildTable; DELETE FROM ParentTable;
But in effect that is two statements.
or
You could put a trigger on the ChildTable that deletes parent records.
Neither meets your criteria.