[GENERAL] Subject: String Concatenation DOES work.

From: Holger Klawitter <holger(dot)klawitter(at)gmx(dot)de>
To: Postgres Mailing List <pgsql-general(at)postgreSQL(dot)org>
Subject: [GENERAL] Subject: String Concatenation DOES work.
Date: 1999-01-07 09:24:56
Message-ID: 36947D68.89A505A@gmx.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> >I tried to place a query like "SELECT * FROM x WHERE a = b || c" where
>
> Well in version 6.4 this works:
> SELECT * FROM x WHERE a = b or a=c;

Ahem, in PostQuel the || Operator stands for string concatenation not
for the logical or. Anyhow, I found out that under 6.4.2 the following
construct seems to work, however, all brackets are neccessary:
SELECT * from x WHERE a ~~ (( '%' || b ) || '%' );

Thanks anyhow
Holger Klawitter
--
Holger Klawitter
holger(dot)klawitter(at)gmx(dot)de http://wwwmath.uni-muenster.de/~holger

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Sferacarta Software 1999-01-07 13:35:54 Re[2]: [GENERAL] 88, CREATE FUNCTION ON TABLE
Previous Message Ansley, Michael 1999-01-07 08:13:34 Beta 6.5