select ims_md_id
from ims_md_general
where ims_md_id = :ims_md_id
update ims_md_general
set structure_v = :structure_v, structure_s = :structure_s
where ims_md_id = :ims_md_id
insert into ims_md_general (ims_md_id, structure_v, structure_s)
values
(:ims_md_id, :structure_v, :structure_s)
select structure_s, structure_v, ims_md_id
from ims_md_general
where ims_md_id = :ims_md_id