vm_id, vm_name, vm_status, vnf_instance_id
delete from vm
where vm_id = #{vmId,jdbcType=VARCHAR}
delete from vm
where vnf_instance_id = #{vnfInstanceId,jdbcType=VARCHAR}
insert into vm (vm_id, vm_name, vm_status,
vnf_instance_id)
values (#{vmId,jdbcType=VARCHAR}, #{vmName,jdbcType=VARCHAR}, #{vmStatus,jdbcType=VARCHAR},
#{vnfInstanceId,jdbcType=VARCHAR})
insert into vm
vm_id,
vm_name,
vm_status,
vnf_instance_id,
#{vmId,jdbcType=VARCHAR},
#{vmName,jdbcType=VARCHAR},
#{vmStatus,jdbcType=VARCHAR},
#{vnfInstanceId,jdbcType=VARCHAR},
update vm
vm_name = #{vmName,jdbcType=VARCHAR},
vm_status = #{vmStatus,jdbcType=VARCHAR},
vnf_instance_id = #{vnfInstanceId,jdbcType=VARCHAR},
where vm_id = #{vmId,jdbcType=VARCHAR}
update vm
set vm_name = #{vmName,jdbcType=VARCHAR},
vm_status = #{vmStatus,jdbcType=VARCHAR},
vnf_instance_id = #{vnfInstanceId,jdbcType=VARCHAR}
where vm_id = #{vmId,jdbcType=VARCHAR}