delete tbl_EAI_PartnerMappings where ownerId = and ownerType = and objectType = and toObjectId = and direction = 'IN' and partnerId = and partnerType = and fromObjectId = 0 insert into tbl_EAI_PartnerMappings ( ownerId, ownerType, direction, partnerId, partnerType, objectType, toObjectId, fromObjectId, fromObjectValue, updateUserId, updateDate ) values ( , , 'IN', , , , , 0, , , getDate() )