Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Passing variable values into a stored procedure
Just to clear my name, I wanted to let you guys know that I had not
started working on the conversion to PL/SQL for the actual procedure
part of the stored proc at the time I posted. I was simply trying to
understand the syntax for passing and accepting a variable value. I
thought what I had was wrong, but it appears I was right. DBArtisan
was reporting an error in the first line. I guess my debugger was
wrong. It was erroring on line 1, and I'd spent hours on it trying to
find the problem so that I could start working through the rest of the
procedure, so what you saw was not, by any means, complete.
I've been working with Oracle, in a limited capacity, for 4 years. Most of my work has been system level, not PL/SQL. I was able to finish the procedure last night once I realized that the debugger was reporting an error where there was no problem. I have been using "Oracle SQL: The Essential Referance" (O'Reily) and "Oracle 8: The Complete Reference" (Oracle Press). Both of these books assisted me in creating the following finished procedure:
CREATE OR REPLACE PROCEDURE WFS.TP_CLEANMYT4WDOC
(TierDocid IN NUMBER)
AS
testcase NUMBER;
BEGIN
Select op__Statusord
INTO testcase
from T4W_Documents
where op__id = TierDocid;
IF testcase = 1 THEN Delete FROM T4W_Documents where op__id = TierDocid; END IF;
Paul Received on Fri Aug 09 2002 - 12:21:08 CDT
![]() |
![]() |