From: Luiz K. Matsumura <luiz@planit.com.br>
To: pgsql-sql@postgresql.org
To: jasen@xnet.co.nz
Subject: Re: UPDATE in a specific order
Date: Fri, 17 Dec 2010 17:01:46 -0200
Message-ID: <4D0BB39A.9040204@planit.com.br> (raw)
In-Reply-To: <iedr1q$dv1$1@reversiblemaps.ath.cx>
References: <4D0A28F0.3020205@planit.com.br>
<iedr1q$dv1$1@reversiblemaps.ath.cx>
Thanks for reply,
Em 16/12/2010 17:58, Jasen Betts escreveu:
>> I need to make update of table1 with data on table2 in the order of id
>> of table2
> that looks like EAV. is it?
>
Err, I don´t know so much about EAV, so I think that isn´t. I´m just
trying to reproduce a calc in a spreeadsheet.
>> There are some way to do this with a UPDATE statement ?
> to do it with an update statement you need no more than one rows in the
> from for each row in the target.
>
> easiest non update statement approach is probably to use a plpgsql
> function with a loop.
>
> basically you need to find another way to do it.
>
Ok! I make a function in plpgsql to do it.
Thank´s again !
*
*
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: luiz@planit.com.br, jasen@xnet.co.nz
Subject: Re: UPDATE in a specific order
In-Reply-To: <4D0BB39A.9040204@planit.com.br>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox