是否可以从函数中调用plpgsql function
(或任何PostgreSQL function
)PL/Python
?
所以,像这样:
CREATE FUNCTION somefunc() RETURNS void AS $$ DECLARE ... BEGIN ... END; $$ LANGUAGE plpgsql;
然后在这里使用它
CREATE FUNCTION pythonFunc() RETURNS void AS $$ ... someFunc() #postgreSQL function ... $$ LANGUAGE plpythonu;
Clodoaldo Ne.. 5
create function plpython_function() returns void as $$ plpy.execute('select plpgsql_function()') $$ language plpythonu;
PL/Python数据库访问
create function plpython_function() returns void as $$ plpy.execute('select plpgsql_function()') $$ language plpythonu;
PL/Python数据库访问