select *
from ims_md_educational_ieur
where ims_md_ed_ie_id = :ims_md_ed_ie_id and ims_md_id = :ims_md_id
update ims_md_educational_ieur
set ieur_s = :ieur_s,
ieur_v = :ieur_v
where ims_md_ed_ie_id = :ims_md_ed_ie_id
insert into ims_md_educational_ieur (ims_md_ed_ie_id, ims_md_id, ieur_s, ieur_v)
values (:ims_md_ed_ie_id, :ims_md_id, :ieur_s, :ieur_v)
select ieur_s, ieur_v,
ims_md_ed_ie_id, ims_md_id
from ims_md_educational_ieur
where ims_md_id = :ims_md_id