Re: What is || doing

From: Tim Landscheidt <tim(at)tim-landscheidt(dot)de>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: What is || doing
Date: 2011-06-27 13:18:24
Message-ID: m3y60nmmzj.fsf@passepartout.tim-landscheidt.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Frank Lanitz <frank(at)frank(dot)uvena(dot)de> wrote:

> I've got an query which contains || inside the select statement and I'm
> not sure, what this is doing. Can you help me out a bit or send me a
> link to documentation where I can find this?

> Example:

> SELECT 'ba_'|| foo || '_pr_'
> FROM 'foobaa'
> WHERE id=1234;

It's a string concatenation, cf.
<URI:http://www.postgresql.org/docs/current/interactive/functions-string.html>.

Tim

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Frank Lanitz 2011-06-27 13:18:40 Re: What is || doing
Previous Message Jean-Yves F. Barbier 2011-06-27 13:13:46 Re: What is || doing