Guest_imported
New member
- Jan 1, 1970
- 0
I want to change the following anonymous block to procedure syntax... I am gonna pass one parameter to the procedure and need to return 'true' or 'false', if the parameter is in the table or not... and I don't know how to execute oracle procedure in ASP.... please, help me...
declare
CURSOR BADWORD_CUR IS
SELECT BADWORD FROM SY_BADWORDS WHERE BADWORD = 'NONE';
BADWORD_REC BADWORD_CUR%ROWTYPE;
BEGIN
OPEN BADWORD_CUR;
FETCH BADWORD_CUR INTO BADWORD_REC;
IF( BADWORD_CUR%ROWCOUNT > 0 ) THEN
DBMS_OUTPUT.PUT_LINE('TRUE');
ELSE
DBMS_OUTPUT.PUT_LINE('FALSE');
END IF;
CLOSE BADWORD_CUR;
END;
declare
CURSOR BADWORD_CUR IS
SELECT BADWORD FROM SY_BADWORDS WHERE BADWORD = 'NONE';
BADWORD_REC BADWORD_CUR%ROWTYPE;
BEGIN
OPEN BADWORD_CUR;
FETCH BADWORD_CUR INTO BADWORD_REC;
IF( BADWORD_CUR%ROWCOUNT > 0 ) THEN
DBMS_OUTPUT.PUT_LINE('TRUE');
ELSE
DBMS_OUTPUT.PUT_LINE('FALSE');
END IF;
CLOSE BADWORD_CUR;
END;