Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

return value from stored procedure..

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I need a value( true or false - or a single row ) returned by a stored procedure.. but i don't know why i can't return the value.. it keeps returning an error message( compilation errors )... It looks a very simple procedure.. and I want to execute this procedure on the browser... please, help me...

-------------------------------------------------------
CREATE OR REPLACE PROCEDURE SP_BADWORD
( WORD IN VARCHAR, BADWORD_MODE OUT VARCHAR )
IS
BEGIN
SELECT BADWORD INTO BADWORD_MODE FROM SY_BADWORDS WHERE BADWORD = WORD;

END SP_BADWORD;
-------------------------------------------------------

 
I tried taking your code verbatim and it compiled and worked fine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top