Discussion: PostgreSQL stored procedure | ||
By strict definition, stored function is used in the place of stored procedures. are . PostgreSQL(9.2) does not support "Create Procedure" to be compatible with Oracle. | ||
|
||
Using Record Data Type :
CREATE OR REPLACE FUNCTION pgsql_record1 |
||
Using refcursor | ||
Script:
CREATE or replace FUNCTION func_refcursor2(refcursor, refcursor,
refcursor) RETURNS SETOF refcursor AS $$ |
||
Those who not in favor:
Why NOT use Stored Procedures* |
||
|
||
Triggers, which initializes an action by an SQL Data Management
Language statement (DML), mostly by INSERT and UPDATE statement are
fully supported. - See more at:
http://www.w3resource.com/PostgreSQL/tutorial.php#sthash.lEfFrtnQ.dpuf
Triggers, which initializes an action by an SQL Data Management
Language statement (DML), mostly by INSERT and UPDATE statement are
fully supported. - See more at:
http://www.w3resource.com/PostgreSQL/tutorial.php#sthash.lEfFrtnQ.dpuf
Triggers, which initializes an action by an SQL Data Management
Language statement (DML), mostly by INSERT and UPDATE statement are
fully supported. - See more at:
http://www.w3resource.com/PostgreSQL/tutorial.php#sthash.lEfFrtnQ.dpuf
|
||