| From: | eric(at)gateway(dot)ctlno(dot)com |
|---|---|
| To: | pgsql-general(at)postgreSQL(dot)org |
| Subject: | Re: [GENERAL] concatenation of string literals |
| Date: | 1998-07-17 17:57:15 |
| Message-ID: | Pine.LNX.3.96.980717124757.2531C-100000@gateway.ctlno.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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(at)ut{anti-spam]corp(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Rostislav Matl | 1998-07-17 19:05:25 | S-Designer DEF file for Postgres |
| Previous Message | Konstantinos Vassiliadis | 1998-07-17 15:35:42 | Loading shared object files into Postgres |