大家都知道DELETE後面不能跟多張表
假設
SQL
以下是引用片段
Declare @DelID Table(ID int)
Delete A
Output Deleted
Into @DelID
From A
Inner Join B ON A
Where A
Delete B Where ID In(Select ID From @DelID)
From:http://tw.wingwit.com/Article/program/Oracle/201311/17533.html