Re: buscar y reemplazar

From: Guillermo Villanueva <guillermovil(at)gmail(dot)com>
To: JHONATAN CANO FURAGARO <jhonatan(dot)cano(dot)f(at)gmail(dot)com>
Cc: Ayuda <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: buscar y reemplazar
Date: 2010-08-20 12:21:45
Message-ID: AANLkTi=rE-ngFgKFeGbY6gH48DTT31wB8geN7Y-Hj0F=@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Hola Jhonatan, fijate en la sentencia UPDATE

UPDATE [ ONLY ] *table* [ [ AS ] *alias* ]
SET { *column* = { *expression* | DEFAULT } |
( *column* [, ...] ) = ( { *expression* | DEFAULT } [, ...]
) } [, ...]
[ FROM *fromlist* ]
[ WHERE *condition* | WHERE CURRENT OF *cursor_name* ]
[ RETURNING * | *output_expression* [ [ AS ] *output_name* ] [, ...] ]

http://www.postgresql.org/docs/8.4/static/sql-update.html

Saludos

~~~~~~~~~~~~~~~~
Guillermo Villanueva

El 19 de agosto de 2010 20:51, JHONATAN CANO FURAGARO <
jhonatan(dot)cano(dot)f(at)gmail(dot)com> escribió:

> Buen día,
>
> tengo una tabla que tiene N registros, de los cuales hay varios que se
> repiten y me gustaria reemplazar unos valores y el resto dejarlos tal cual.
> Mas o menos como buscar y reemplazar.
> Cual es la forma correcta de realizar esta tarea?
>
> Saludos.
>
> --
> JHONATAN CANO FURAGARO
> Ingeniero Forestal
> Universidad Nacional de Colombia
> Celular 300 430 45 46
>

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message ALFONSO REYES 2010-08-20 20:12:36 RE:friend 7
Previous Message Edwin Quijada 2010-08-20 00:28:10 RE: Consulta con fechas