select, columns, and aliases

From: CSN <cool_screen_name90001(at)yahoo(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: select, columns, and aliases
Date: 2004-07-23 09:48:01
Message-ID: 20040723094801.99656.qmail@web52905.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Is it possible to automatically prefix a table alias
(or table name or something else even) to each column
in a select list? For example:

select a.*, b.*
from tablea a
inner tableb b
on a.id=b.aid;

results:

a_id, a_name, b_id, b_name, b_aid

CSN



__________________________________
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!
http://advision.webevents.yahoo.com/yahoo/votelifeengine/

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Prabu Subroto 2004-07-23 12:15:33 Re: polating (insert into...) a table with determined record from another table.
Previous Message Shridhar Daithankar 2004-07-23 09:34:49 Re: dumping the schema