begin tran update_date
delete From xinxi
where xuehao='2005110405'
if @@rowcount<>0
delete From chengji
where xuehao='2005110405'
if @@rowcount<>0
begin
commit tran update_date
end
else
rollback tran update_date
go
if @@error=0
print '数据库修改成功'
go
我查查资料这样不知道对不对啊,