select ims_md_id from ims_md_rights where ims_md_id = :ims_md_id update ims_md_rights set cost_s = :cost_s, cost_v = :cost_v where ims_md_id = :ims_md_id insert into ims_md_rights (ims_md_id, cost_s, cost_v) values (:ims_md_id, :cost_s, :cost_v) select '[' || cost_s || '] ' || cost_v as cost, ims_md_id from ims_md_rights where ims_md_id = :ims_md_id