dbTalk Databases Forums  

how to run function?

comp.databases.postgresql.general comp.databases.postgresql.general


Discuss how to run function? in the comp.databases.postgresql.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
autogoor@yahoo.com
 
Posts: n/a

Default how to run function? - 03-17-2005 , 01:42 AM






I define a function

CREATE OR REPLACE FUNCTION my_function(n varchar) RETURNS void AS $$
DECLARE
...
BEGIN
...
END;
$$ LANGUAGE plpgsql;

I use \i my_func_file.sql.

How can I use the function?


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.