Código SQL [-] Update ventas v set regalias = (Select campo from productos p where p.codigo = v.codigo) where algunpredicado;
Update ventas v set regalias = (Select campo from productos p where p.codigo = v.codigo) where algunpredicado;