编辑器加载中...
delete DayTable whereexists(select Mobile from TrueEndTable with (nolock) whereconvert(varchar(6),procmsgtime,112) =convert(varchar(6),getdate(),112) and customID <>0and mobile = TrueTable.mobilegroupby Mobile havingsum(fee)<@sSumFee)--记录DEl受影响行update DelDayLog set[Status]=1,OpRecord =@sOpRecord+convert(varchar(19),getdate(),120) +':删除'+convert(varchar(4),@@ROWCOUNT) +'条数据成功'whereconvert(varchar(10),OpCurTime,120) =convert(varchar(10),getdate(),120) and[Status]=0
想请教各位大虾convert(varchar(4),@@ROWCOUNT) @@ROWCOUNT=什么值的时候转化成字符串 会等于 * 号 , 如果@@ROWCOUNT= '*' 那到底是删除了多少行数据?
- 3 回答
- 0 关注
- 548 浏览
添加回答
举报
0/150
提交
取消