codice:
update punti,linee
set linee.oldgrid = punti.id
where punti.cat = linee.cat