Search Postgresql Archives

Execute a query passed by parameters to a function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, 
I have a function which receive a parameters as text. This text is a query. I want to execute this query, but I don't know how. Can any one help me?
Regards, 
Yadira    


CREATE OR REPLACE FUNCTION myfunction(text)
  RETURNS void AS
$BODY$
--I want execute the text I pass by parameters as a query. 
$BODY$
 LANGUAGE 'sql' VOLATILE

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux