编辑器加载中...
delete DayTable whereexists
(
select Mobile from TrueEndTable with (nolock)
whereconvert(varchar(6),procmsgtime,112) =convert(varchar(6),getdate(),112) and customID <>0and mobile = TrueTable.mobile
groupby 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= '*' 那到底是删除了多少行数据?