replace INTO udi_standagency ( UDI_StandAgencyOID,issuingAgency,AgencyName,ProductionDate, ExpiryDate,Lot,Serial,Validity,Checkbit,DIPrefix,Reserve1,Reserve2,Reserve3 ) values ( #{UDI_StandAgencyOID}, #{issuingAgency}, #{AgencyName}, #{ProductionDate}, #{ExpiryDate}, #{Lot}, #{Serial}, #{Validity}, #{Checkbit}, #{DIPrefix}, #{Reserve1}, #{Reserve2}, #{Reserve3} ) delete from udi_standagency where udi_standagencyOID = #{id} UPDATE udi_standagency issuingAgency=#{issuingAgency}, AgencyName=#{AgencyName}, ProductionDate=#{ProductionDate}, ExpiryDate=#{ExpiryDate}, Lot=#{Lot}, Serial=#{Serial}, Validity=#{Validity}, Checkbit=#{Checkbit}, DIPrefix=#{DIPrefix}, Reserve1=#{Reserve1}, Reserve2=#{Reserve2}, Reserve3=#{Reserve3}, WHERE UDI_StandAgencyOID=#{UDI_StandAgencyOID}