select ims_md_id from ims_md_educational where ims_md_id = :ims_md_id update ims_md_educational set int_level_s = :int_level_s, int_level_v = :int_level_v where ims_md_id = :ims_md_id insert into ims_md_educational (ims_md_id, int_level_s, int_level_v) values (:ims_md_id, :int_level_s, :int_level_v) select int_level_s, int_level_v, ims_md_id from ims_md_educational where ims_md_id = :ims_md_id