Re: UPDATE with concatenate

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Laurent Patureau <lpatureau(at)idfr(dot)net>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: UPDATE with concatenate
Date: 2001-06-07 17:43:12
Message-ID: Pine.BSF.4.21.0106071042420.21982-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


Maybe this?
update table set col = col || '$val';

On Thu, 7 Jun 2001, Laurent Patureau wrote:

> Hy,
>
> I try to update a table:col with take the valueof this col and concatenate
> it with $val.
> I don't want to select all value of table:col and addition $val at each one
>
> I try :
>
> UPDATE table SET col .= '$val'
>
> But it doesn't work, any suggestion ?

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Rene Pijlman 2001-06-07 18:39:29 Re: UPDATE with concatenate
Previous Message Stephan Szabo 2001-06-07 17:39:08 Re: Are SQL commands "atomic" ?