Re: [SQL] what does this do

2010-06-10 Thread Tim Landscheidt
John 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 >

[SQL] what does this do

2010-06-10 Thread John
Hi, 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.

Re: [SQL] what does this do

2010-06-10 Thread Richard Broersma
On Thu, Jun 10, 2010 at 3:57 AM, Tim Landscheidt wrote: > John 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 "enrollid

Re: [SQL] what does this do

2010-06-10 Thread Little, Douglas
First remove the python select * from jfcs_balancedue(parameter) f(enrolleeid varchar,course_cost decimal, paid_amt decimal) the jfcs_balancedue is a table function, f is the alias (with the column alias list/datatype of the columns returned by the function). Doug -Original Message-

Re: [SQL] what does this do

2010-06-10 Thread John
On Thursday 10 June 2010 06:46:46 am Little, Douglas wrote: > First remove the python > select * from jfcs_balancedue(parameter) f(enrolleeid varchar,course_cost > decimal, paid_amt decimal) > > the jfcs_balancedue is a table function, f is the alias (with the column > alias list/datatype of the c

Re: [SQL] what does this do

2010-06-10 Thread Tim Landscheidt
Richard Broersma 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

[SQL] Returning to default (e.g. blank) table permissions after a revoke?

2010-06-10 Thread Bryce Nesbitt
If I create a new table the "Access privileges" are blank, which gives implicit access to the table owner. But if I touch the grants, then revoke, the privileges are set to {} which is not the same thing: production=> create table zzz_junk1 (); production=> \z zzz_junk1 Schema | Name| Ty