Re: table.column in query results?

From: Andrew Klaassen <clawsoon(at)yahoo(dot)com>
To: pgsql-general(at)postgresql(dot)org, Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
Subject: Re: table.column in query results?
Date: 2009-07-23 15:51:39
Message-ID: 802417.83719.qm@web65413.mail.ac4.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

--- On Thu, 7/23/09, Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at> wrote:

> Andrew Klaassen wrote:
> > Is it possible to get table.column in query results
> rather
> > than just column?
> >
> > I.e. I'd like:
> >
> > SELECT * FROM foo, bar;
> > foo.id | foo.name | bar.id | bar.text
> > -------+----------+--------+---------
> > ...
> >
> > ...rather than:
> >
> > SELECT * FROM foo, bar;
> > id | name | id | text
> > ---+------+----+-----
> > ...
>
> You'd have to use aliases, like
>
> SELECT id AS "foo.id" ...

Ah... so no way to do it with a wildcard in the query?

That's unfortunate.

Thanks.

Andrew

__________________________________________________________________
The new Internet Explorer® 8 - Faster, safer, easier. Optimized for Yahoo! Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/

Browse pgsql-general by date

  From Date Subject
Next Message Greg Smith 2009-07-23 16:18:40 Re: synchronous_commit=off doesn't always return immediately
Previous Message Joshua Tolley 2009-07-23 15:13:29 Re: comparing NEW and OLD (any good this way?)