2009/1/9 Fernando Hevia <fhe...@ip-tel.com.ar>: > > >> >> >> 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'; > >
Claro, yo entendi que tenia que cambiar un determinado registro... El que posteo Fernando te sirve para todos. > > -- Emanuel Calvo Franco ArPUG / AOSUG Member Postgresql Support & Admin -- TIP 4: No hagas 'kill -9' a postmaster