Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Show SProc results in Data Grid (Toad)

user615954Nov 26 2010 — edited Nov 26 2010
Hi

Need some help please

Have the following SP

CREATE OR REPLACE Procedure sp_validate_A_Field
(
field1 IN VARCHAR2,
isValid OUT VARCHAR2
)
IS
tmp_field1 VARCHAR2(100);

BEGIN

SELECT A_field INTO tmp_field1
FROM table1
WHERE field2 = 'xxx'
AND A_field = Field1;

IF tmp_field1 IS NULL OR tmp_field1 = '' THEN
isValid := '0';
ELSE
isValid := '1';
END IF;


EXCEPTION

WHEN NO_DATA_FOUND THEN
isValid := '0';

WHEN OTHERS THEN
isValid := 'Error';

END;


How do I show the results in the data grid when executing the SP. I can show the results in the DBMS output when executing the following
DECLARE output VARCHAR2(30);BEGIN SP_VALIDATE_POLICY_NUMBER ('myinput', output);DBMS_OUTPUT.PUT_LINE(output);END;
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 24 2010
Added on Nov 26 2010
2 comments
819 views