Re: Default column titles in a select... - Mailing list pgsql-sql

From greg@turnstep.com
Subject Re: Default column titles in a select...
Date
Msg-id a795db703ad93b20298c89fc7add34de@biglumber.com
Whole thread Raw
In response to Default column titles in a select...  (Axel Schlueter <axel@pqrs.de>)
List pgsql-sql
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


>When doing the following select statement:
>   select * from a,b where a.objid=b.objid
>postgresql returns four columns labeled
>   objid  atext  objid  atext
>instead of what I expected:
>   a.objid  a.atext  b.objid  b.atext

You will have to explicitly specify them yourself:

SELECT a.objid AS "a.objid", a.atext AS "a.atext",      b.objid AS "b.objid", b.atext AS "b.atext"

to get the results you want. 

- --
Greg Sabino Mullane greg@turnstep.com
PGP Key: 0x14964AC8 200302191003

-----BEGIN PGP SIGNATURE-----
Comment: http://www.turnstep.com/pgp.html

iD8DBQE+U5zTvJuQZxSWSsgRAlxWAKDrB+q9NsiXLAsudRQDu+2p7ma94wCeKMC/
box5pl2CIsjsjD979gKZ3/8=
=0k+n
-----END PGP SIGNATURE-----




pgsql-sql by date:

Previous
From: Axel Schlueter
Date:
Subject: Default column titles in a select...
Next
From: Bruno Wolff III
Date:
Subject: Re: Default column titles in a select...