From: | greg(at)turnstep(dot)com |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Default column titles in a select... |
Date: | 2003-02-19 15:07:07 |
Message-ID: | a795db703ad93b20298c89fc7add34de@biglumber.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)turnstep(dot)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-----
From | Date | Subject | |
---|---|---|---|
Next Message | Christoph Haller | 2003-02-19 15:10:40 | Re: Default column titles in a select... |
Previous Message | Axel Schlueter | 2003-02-19 14:25:41 | Default column titles in a select... |