Re: [GENERAL] concatenation of string literals - Mailing list pgsql-general

From eric@gateway.ctlno.com
Subject Re: [GENERAL] concatenation of string literals
Date
Msg-id Pine.LNX.3.96.980717124757.2531C-100000@gateway.ctlno.com
Whole thread Raw
In response to concatenation of string literals  (Kurt Seel <kseel@utcorp.com>)
Responses Re: [GENERAL] concatenation of string literals  (Maarten Boekhold <maartenb@dutepp0.et.tudelft.nl>)
List pgsql-general

On Fri, 17 Jul 1998, Kurt Seel wrote:

> This works :
> psql -c "select arcode ||  phnum from nccbor_member;"
>
>  But this doesn't
> psql -c " select arcode || '-' || phnum from nccbor_member;"
>
>  It's an inconvience because I am doing mail merges in wordperfect
> using postodbc, and I keep having to do things like put dashes in
> phone numbers and such in wordperfect, is there another way to concat
> string
literals?
>
> --
> Kurt Seel, Systems Engineer
> Unified Technologies Corp.
> Phone : 610 964 8200
> Email : kseel@ut{anti-spam]corp.com
>
>  To send me email, remove the {anti-spam] from the above address.
>

You will probably need to put parenthases around either the first two or
the last two strings:

psql -c " select (arcode || '-') || phnum from nccbor_member;"

that should work fine


pgsql-general by date:

Previous
From: "Gene Selkov, Jr."
Date:
Subject: Re: Loading shared object files into Postgres
Next
From: Rostislav Matl
Date:
Subject: S-Designer DEF file for Postgres