pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jose' Soares Da Silva <sferac@bo.nettuno.it>
To: Leslie Mikesell <les@Mcs.Net>
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] text concat in WHERE?
Date: Tue, 9 Jun 1998 16:09:09 +0000 (UTC)
Message-ID: <Pine.LNX.3.96.980609155815.3621B-100000@proxy.bazzanese.com> (raw)
In-Reply-To: <199806052310.SAA24926@Venus.mcs.net>

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'




view thread (2+ messages)

Message-ID: <Pine.LNX.3.96.980609155815.3621B-100000@proxy.bazzanese.com>
Permalink:  ../Pine.LNX.3.96.980609155815.3621B-100000@proxy.bazzanese.com/
Also on:    postgresql.org/message-id/Pine.LNX.3.96.980609155815.3621B-100000@proxy.bazzanese.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: sferac@bo.nettuno.it, les@Mcs.Net
  Subject: Re: [SQL] text concat in WHERE?
  In-Reply-To: <Pine.LNX.3.96.980609155815.3621B-100000@proxy.bazzanese.com>
  References: <199806052310.SAA24926@Venus.mcs.net> <Pine.LNX.3.96.980609155815.3621B-100000@proxy.bazzanese.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox