Re: Default column titles in a select...

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Axel Schlueter <axel(at)pqrs(dot)de>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Default column titles in a select...
Date: 2003-02-19 15:22:57
Message-ID: 20030219152257.GA17434@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Wed, Feb 19, 2003 at 15:25:41 +0100,
Axel Schlueter <axel(at)pqrs(dot)de> wrote:
>
> 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

Use something like:
select a.objid as "a.objib", a.atext as "a.atext", b.objid as "b.objid",
b.atext as "b.atext" from a,b where a.objid=b.objid;

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Huxton 2003-02-19 18:10:50 Re: VIEW or Stored Proc - Is this even possible?
Previous Message Tom Lane 2003-02-19 15:22:37 Re: once again, sorting with Unicode