标签:mount int update mission exists com seve sql upd
(‘ if exists(select * from NBcommission where Type=‘‘‘+sType+‘‘‘and ItemNo=‘‘‘+s+‘‘‘ ) ‘+
‘ begin‘+
‘ update NBcommission set Amount=‘‘‘+m+‘‘‘ , CType=‘‘‘+sCType+‘‘‘where Type=‘‘‘+sType+‘‘‘and ItemNo=‘‘‘+s+‘‘‘ ;‘+
‘ end;‘ +
‘ else‘+
‘ begin‘+
‘ INSERT into NBcommission (Type,ItemNo,Unit,Amount,Ctype) values ( ‘‘‘+sType+‘‘‘ , ‘‘‘+s+‘‘‘ , ‘‘‘ +sUnit+ ‘‘‘ , ‘‘‘ +m+ ‘‘‘ , ‘‘‘ +sCType+ ‘‘‘); ‘+
‘ end;‘
);
标签:mount int update mission exists com seve sql upd
原文地址:http://www.cnblogs.com/semth/p/7560269.html