Re: [INTERFACES] Tables names from query - Mailing list pgsql-interfaces

From Bob VonMoss
Subject Re: [INTERFACES] Tables names from query
Date
Msg-id 36D17C14.4384F7D8@idm.com
Whole thread Raw
In response to Tables names from query  (Philip Shiels <philip.shiels@jrc.it>)
List pgsql-interfaces
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 ?




pgsql-interfaces by date:

Previous
From: Tom Lane
Date:
Subject: Re: [INTERFACES] Tables names from query
Next
From: Michael Davis
Date:
Subject: How do I execute a postges stored procedure or function from Acce ss97?