I have a stored procedure mydb.iscustomereligible(someGUID) that returns either 'true' or 'false' in a simple result set.
If the customer is not eligible, the proc prints a reason to dbms_output, for example reason code: Invalid Age: 2.
How can I improve the below statement to include the dbms_output text?
select mydb.iscustomereligible('1F2629379C4FA046E050C90A0C5A3000') from dual;
This is what I have come up with so far (and dismally failed), I can't get dbms_output.get_line to work
declare
v_Data dbms_output.chararr;
v_NumLines number;
begin
-- enable the buffer first
dbms_output.enable(1000000);
dbms_output.put_line('hi');
select mydb.iscustomereligible('1F2629379C4FA046E050C90A0C5A3000') from dual;
select dbms_output.get_line(???) from dual;
end;
Thanks :)
iscustomereligiblestored proc I just want to query the results...set serveroutput onto see the output ofdbms_output- I assume it's the same for PL/SQL Developer