1. Chen Mey Lee
  2. PowerBuilder
  3. Tuesday, 2 July 2024 13:29 PM UTC

Can PowerBuilder call below PostgreSQL procedure to return result set (refcursor type) in datawindow ?

 

CREATE OR REPLACE PROCEDURE public.get_employee_cursor(emp_id integer, INOUT swv_refcur refcursor DEFAULT NULL::refcursor)

LANGUAGE plpgsql

AS $procedure$

begin

open swv_refcur for

select a.first_name, a.last_name

from public.employees a

where a.employee_id = emp_id;

end;

$procedure$

;

 

Try below PB script but REF CURSOR returns syntax error

 



There are no replies made for this question yet.
However, you are not allowed to reply to this question.