From: | "Jaime Casanova" <systemguards(at)gmail(dot)com> |
---|---|
To: | "Robby Gustabello Cogle" <robbygustabello(at)gmail(dot)com> |
Cc: | "Miguel Panuera" <mpanuera(at)gmail(dot)com>, PostgreSQL <pgsql-es-ayuda(at)postgresql(dot)org> |
Subject: | Re: Ayuda sobre updates |
Date: | 2007-08-30 23:08:31 |
Message-ID: | c2d9e70e0708301608p523b3c53nc12a161144303d9b@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
On 8/30/07, Robby Gustabello Cogle <robbygustabello(at)gmail(dot)com> wrote:
> Parece ser que el mensaje nunca llegó completamente por problemas con la
> red. Disculpen. Mi duda radica en si es mejor darle update a uno o varios
> campos a la vez (los que sé que cambian) o hacerlo a toda la tupla,
> sobreescribiendo los campos que sé que no han cambiado.
> Saludos
>
>
estas dos sentencias son lo mismo (se demoran lo mismo):
update tabla set campo1 = valor where expresion;
update tabla set campo1 = valor1, campo2 = valor2 where expresion;
si te refieres a actualizar una fila a la vez o varias al mismo
tiempo, actualiza varias en una sola consulta...
--
Atentamente,
Jaime Casanova
"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs and the universe trying
to produce bigger and better idiots.
So far, the universe is winning."
Richard Cook
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2007-08-30 23:24:45 | Re: Ayuda sobre updates |
Previous Message | Robby Gustabello Cogle | 2007-08-30 23:01:37 | Re: Ayuda sobre updates |