Re: [SQL] text concat in WHERE? - Mailing list pgsql-sql

From Jose' Soares Da Silva
Subject Re: [SQL] text concat in WHERE?
Date
Msg-id Pine.LNX.3.96.980609155815.3621B-100000@proxy.bazzanese.com
Whole thread Raw
In response to text concat in WHERE?  (Leslie Mikesell <les@Mcs.Net>)
List 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@mcs.com

                                                            Ciao, Jose'


pgsql-sql by date:

Previous
From: "Jose' Soares Da Silva"
Date:
Subject: Re: [SQL] querying array
Next
From: Petter Reinholdtsen
Date:
Subject: Problems with default date 'now'