楼主为什么要用一条啊?是为了实现要么同时删除,要么都不删除么?如果是的话,可以这样写if exists (select * from table1 where a='1') and exists (select * from table2 where a='1')beginbegin transactiondelete from table1if @@error0beginrollback transactionenddelete from table2if @@error0beginrollback transactionendcommit transactionend