Re: update question

From: Jaime Casanova <systemguards(at)gmail(dot)com>
To: Matthew Peter <survivedsushi(at)yahoo(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: update question
Date: 2005-12-05 23:08:42
Message-ID: c2d9e70e0512051508y2a9c4addj5c7927f3f4052775@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On 12/5/05, Matthew Peter <survivedsushi(at)yahoo(dot)com> wrote:
> I need a throw away value for an insert statement... example...
>
> update table
> set value = 1, value = 2, throw_away_value -- so i don't break the query
> where id = 1;
>
> Thanks
>

What do you mean by "throw away value"?

are you trying to update and if the row doesn't exist then insert? if
that is you can do a function in plpgsql and use exceptions for
that... there is an example in the manuals

--
regards,
Jaime Casanova
(DBA: DataBase Aniquilator ;)

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Matthew Peter 2005-12-05 23:41:23 Re: update question
Previous Message Matthew Peter 2005-12-05 22:59:35 update question