In article <[EMAIL PROTECTED]>,
 Alchemist <[EMAIL PROTECTED]> wrote:

> I am using Python 2.4 and Postgresql 8.2 database server.
> 
> On the database I have created a stored function, example,
> CREATE OR REPLACE FUNCTION calculateaverage()
> 
> I created a new python script and would like to call my database
> stored function.
> 
> How can I call a database stored function/procedure in python?

You need a layer in between Python and Postgres so that they can talk to 
one another. If you don't have one, try this one (use version 2, not 
version 1.x):
http://www.initd.org/tracker/psycopg

Good luck

-- 
Philip
http://NikitaTheSpider.com/
Whole-site HTML validation, link checking and more
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to