Re: name of a column returned from a table function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Iain" <iain(at)mst(dot)co(dot)jp>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: name of a column returned from a table function
Date: 2004-01-19 15:07:54
Message-ID: 28036.1074524874@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Iain" <iain(at)mst(dot)co(dot)jp> writes:
> I've written a little table function that simply returns all the dates in a
> month. No problems so far. Now I want to outer join this list to another
> table, but I dont know what to call the column returned by the
> function.

Same as the name of the function, unless you supply a column alias to
change it to something else.

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Robert Creager 2004-01-19 17:38:53 Re: How can I get the last element out of GROUP BY sets?
Previous Message Denis 2004-01-19 12:11:20 Re: Initially Deffered - FK