Convert Oracle stored procedure using REF_CURSOR and package global variable to Postgresql or MySQL
问题 This package uses two unique features of Oracle, REF_CURSOR and a package global variable. I would like to port the functionality from Oracle to Postgresql or MySQL. PACKAGE tox IS /*=======================*/ g_spool_key spool.key%TYPE := NULL; TYPE t_spool IS REF CURSOR RETURN spool%ROWTYPE; /*=======================*/ PROCEDURE begin_spool; /*=======================*/ PROCEDURE into_spool ( in_txt IN spool.txt%TYPE ); /*=======================*/ PROCEDURE reset_spool; /*====================