Aliasing all fields

From: "Rob Hutton" <rob(dot)hutton(at)wsafe(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Aliasing all fields
Date: 2002-09-19 02:47:24
Message-ID: MJEGKBFNFCKLCNDBOKIMMEEBDFAA.rob.hutton@wsafe.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Is there a way to get PostgreSQL to alias all fields in a select even if
there is no naming conflict? For instance, if I do a:

select * from table1, table2 where table1.t1c1 = table2.t2c2

then I want

table1.t1c1 | table1.t1c2 | table1.t1c3 | table2.t2c1 | table2.t2c2

Not just the column names.

Thanks,
Rob Hutton
Web Safe
www.wsafe.com

Browse pgsql-general by date

  From Date Subject
Next Message Darren Ferguson 2002-09-19 02:59:46 Re: IN vs EXIIST
Previous Message Jean-Christian Imbeault 2002-09-19 02:40:20 IN vs EXIIST