Re: Stored Procedure
I have simplified the code as below:
I am still getting an error message from my debugger about the first 3 lines.
Any guidance would be appreciated.
Mike
*********
update Invoices02 set EXTRA1 = " ";
DELIMITER //
CREATE PROCEDURE pbackup1(IN mContinue)
BEGIN
let mContinue = "YES";
while (mContinue = "YES") {
SELECT @CCNT1 := COUNT(Check01) FROM Invoices02 where Check01 = 1 and EXTRA1 = " ";
IF @CCNT1 > O THEN
@mInvnbr := SELECT Invnbr FROM Invoices02 WHERE Check01 = 1 and EXTRA1 = " ";
update Invoices02 set EXTRA1 = "X" where Invnbr = @mInvnbr;
ELSE
mContinue = 'NO';
END IF;
}
END; //
DELIMITER ;
Subject
Written By
Posted
Re: Stored Procedure
August 13, 2024 08:04PM
Sorry, only registered users may post in this forum.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.