Re: what does this do - Mailing list pgsql-sql

From Tim Landscheidt
Subject Re: what does this do
Date
Msg-id m3y6encfzw.fsf@passepartout.tim-landscheidt.de
Whole thread Raw
In response to what does this do  (John <johnf@jfcomputer.com>)
Responses Re: what does this do  (Richard Broersma <richard.broersma@gmail.com>)
List pgsql-sql
John <johnf@jfcomputer.com> wrote:

> I have a piece of python code that excutes a SQL statement:

> apitempCur.execute("select * from jfcs_balancedue('%s') f(enrolleeid varchar,
> course_cost decimal, paid_amt decimal)" % (enrollIds,));

> The "enrollids" is a list of primary keys and the "jfcs_balancedue" is a user
> defined function.  What I don't understand is the "f(enrolleeid
> varchar, ...)"   I have no idea what it's for?  Would some kind soul educate
> me.

You can omit the "AS" from "table_name AS alias
(column_alias, ...)", but AFAIK PostgreSQL doesn't support
specifying a data type for each column. Which DBMS is this
code used for?

Tim



pgsql-sql by date:

Previous
From: John
Date:
Subject: what does this do
Next
From: Richard Broersma
Date:
Subject: Re: what does this do