insert into oac_file values('',GETDATE(),'')sql 有没有一个函数来判断 是不是执行了?update oea_file set oea21='' where oea51 in (select oea51 from oea_file where oea51='a124820007968') and oea10='昆山仓库' and (oea02='在库' or oea02='待收货') and (insert into oac_file values('',GETDATE(),''))如果 insert 成功 猜 update
1 回答
临摹微笑
TA贡献1982条经验 获得超2个赞
@@rowcount 看一下,是否》0,如果是再继续
insert into oac_file values('',GETDATE(),'')
if @@rowcount>1
update oea_file set oea21='' where oea51 in (select oea51 from oea_file where oea51='a124820007968')
and oea10='昆山仓库' and (oea02='在库' or oea02='待收货') and (insert into oac_file values('',GETDATE(),''))
- 1 回答
- 0 关注
- 696 浏览
添加回答
举报
0/150
提交
取消