update oc set idpo_afec = (select id from po where numberref=oc.id limit 1) where id in (select numberref from po)