select windplant_no, mv_no, wtur_no, oftype, name, ref, presence, instmag, mag, coeff, range, q, t, measurementtype_no, stat_tag, unified_point from mv
insert into mv
windplant_no,
mv_no,
wtur_no,
oftype,
name,
ref,
presence,
instmag,
mag,
coeff,
range,
q,
t,
measurementtype_no,
stat_tag,
unified_point,
#{windplantNo},
#{mvNo},
#{wturNo},
#{oftype},
#{name},
#{ref},
#{presence},
#{instmag},
#{mag},
#{coeff},
#{range},
#{q},
#{t},
#{measurementtypeNo},
#{statTag},
#{unifiedPoint},
insert into mv(windplant_no, mv_no, wtur_no, name, ref, coeff, measurementtype_no, unified_point)
SELECT
#{item.windplantNo},
#{item.mvNo},
#{item.wturNo},
#{item.name},
#{item.ref},
#{item.coeff},
#{item.measurementtypeNo},
#{item.unifiedPoint}
FROM DUAL
update mv
windplant_no = #{windplantNo},
wtur_no = #{wturNo},
oftype = #{oftype},
name = #{name},
ref = #{ref},
presence = #{presence},
instmag = #{instmag},
mag = #{mag},
coeff = #{coeff},
range = #{range},
q = #{q},
t = #{t},
measurementtype_no = #{measurementtypeNo},
stat_tag = #{statTag},
unified_point = #{unifiedPoint},
where mv_no = #{mvNo}
delete from mv where mv_no = #{mvNo}