pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bob VonMoss <bvonmoss@idm.com>
To: philip.shiels@jrc.it
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] Tables names from query
Date: Mon, 22 Feb 1999 09:47:33 -0600
Message-ID: <36D17C14.4384F7D8@idm.com> (raw)
References: <36D15B0D.B57DB69C@jrc.it>

Philip Shiels wrote:

> SELECT x.y, z.y from x, y where x.key = z.key
>
> The problem with the above is that I get back 2 fields called 'y' and have no
> way of knowing from which tables they've come from.

Do something like this:

SELECT x.y, z.y AS z_y from x, z where x.key = z.key;

> Is there is a way of identifying the originating tables ?






view thread (6+ messages)  latest in thread

Message-ID: <36D17C14.4384F7D8@idm.com>
Permalink:  ../36D17C14.4384F7D8@idm.com/
Also on:    postgresql.org/message-id/36D17C14.4384F7D8@idm.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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: bvonmoss@idm.com, philip.shiels@jrc.it
  Subject: Re: [INTERFACES] Tables names from query
  In-Reply-To: <36D17C14.4384F7D8@idm.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