> 
> 
> UPDATE tabla
>     SET campo = (select regexp_replace(campo,'sapato',' ') 
> from tabla where .... )
>     where ....
> 

Puede ser más simple también:

UPDATE tabla
   SET campo = regexp_replace(campo, 'sapato', 'zapato')
 WHERE campo ~ 'sapato';



--
TIP 1: para suscribirte y desuscribirte, visita 
http://archives.postgresql.org/pgsql-es-ayuda

Responder a