Israil Ahmad

Israil Ahmad

  • NA
  • 360
  • 546

Migrate database oracle to postgresql: procedures.

Feb 19 2020 8:11 AM
  1. CREATE OR REPLACE PROCEDURE USPX_TEST (NAME IN VARCHAR2,cb_results_cursor OUT SYS_REFCURSOR) IS  
  2. BEGIN  
  3. OPEN cb_results_cursor FOR SELECT * FROM EMPLOYEES WHERE EMP_NAME = NAME;  
  4. END USPX_TEST;  
Please provide me how to convert this same procedure in postgreSQL.
 
NOTE: we need to return the result in a cursor using out parameter
 
Thanks in advance...