Re: Stored Procedure
Hi Barry:
I have updated my code as below but I am still getting an error message about the first 3 lines.
Mike
*******
CREATE PROCEDURE pbackup1()
BEGIN
DECLARE nContinue varchar(20) DEFAULT " ";
let mContinue = "YES";
WHILE mContinue = "YES" DO
SELECT @CCNT1 := COUNT(Check01) FROM Invoices02 where Check01 = 1 and EXTRA1 = " ";
IF @CCNT1 > 0 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 WHILE;
END //
DELIMITER ;
Subject
Written By
Posted
Re: Stored Procedure
August 14, 2024 07:13AM
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.