例如这样子
Create procedure DeleteById
@Id int
as
begin
Delete from Table1 where Id=@Id
Delete from Table2 where Id=@Id
我两个表中都有同一个字段,我想同时删掉这个字段
例如这样子
Create procedure DeleteById
@Id int
as
begin
Delete from Table1 where Id=@Id
Delete from Table2 where Id=@Id
我两个表中都有同一个字段,我想同时删掉这个字段
可以的 不过最好用事务。