MySQL Forums
Forum List  »  Newbie

Re: Stored Procedure
Posted by: Michael Smith
Date: August 13, 2024 08:04PM

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 ;

Options: ReplyQuote


Subject
Written By
Posted
August 13, 2024 12:21PM
Re: Stored Procedure
August 13, 2024 08:04PM
August 14, 2024 12:07AM
August 14, 2024 07:13AM
August 14, 2024 09:44PM
August 15, 2024 07:47AM
August 15, 2024 03:58PM
August 15, 2024 06:32PM
August 15, 2024 06:36PM
August 16, 2024 05:25AM
August 15, 2024 05:49PM
August 16, 2024 08:32AM
August 16, 2024 03:41PM
August 16, 2024 09:24PM


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.