Re: Stupid question: concatenating strings

From: <bmccoy(at)chapelperilous(dot)net>
To: Justin Long <justinlong(at)strategicnetwork(dot)org>
Cc: pgsql-novice(at)hub(dot)org
Subject: Re: Stupid question: concatenating strings
Date: 2000-10-18 17:17:48
Message-ID: Pine.LNX.4.10.10010181316290.8716-100000@chapelperilous.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Wed, 18 Oct 2000, Justin Long wrote:

> I want to do the following
>
> UPDATE newlink SET newfrom = substr(oldfrom,0,1) + '-' + substr(oldfrom,1)

The concatenation operator is '||' (two pipe symbols).

Brett W. McCoy
http://www.chapelperilous.net
---------------------------------------------------------------------------
My haircut is totally traditional!

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2000-10-18 17:21:48 Re: Stupid question: concatenating strings
Previous Message Justin Long 2000-10-18 16:07:51 Stupid question: concatenating strings