Re: [SQL] text concat in WHERE?

From: "Jose' Soares Da Silva" <sferac(at)bo(dot)nettuno(dot)it>
To: Leslie Mikesell <les(at)Mcs(dot)Net>
Cc: pgsql-sql(at)postgreSQL(dot)org
Subject: Re: [SQL] text concat in WHERE?
Date: 1998-06-09 16:09:09
Message-ID: Pine.LNX.3.96.980609155815.3621B-100000@proxy.bazzanese.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Fri, 5 Jun 1998, Leslie Mikesell wrote:

> Should I be able to:
> SELECT * from t1, t2
> WHERE t1.a || ' ' || t2.b = t2.c;
>
Try this:
SELECT * from t1, t2
WHERE (t1.a || ' ') || t2.b = t2.c;

> In other words, combine two fields from one table and a constant space
> for the join with a single field in the other table?
>
> Les Mikesell
> les(at)mcs(dot)com

Ciao, Jose'

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Petter Reinholdtsen 1998-06-09 16:19:49 Problems with default date 'now'
Previous Message Jose' Soares Da Silva 1998-06-09 14:50:50 Re: [SQL] querying array