MySQL Forums
Forum List  »  Newbie

Re: IF ELSE
Posted by: Barry Galbraith
Date: March 22, 2023 05:02PM

Quote

DELIMITER //

drop procedure IF EXISTS CountIN ;

DELIMITER //

create procedure CountIn (ccnt INT)

The first line changes the delimiter from default ; to //
The second line, where you try to drop the procedure isn't executed because you use ; rather than //
So, after the first time, the procedure exists when you try to create it.

Good luck,
Barry.

Options: ReplyQuote


Subject
Written By
Posted
March 15, 2023 03:31PM
March 19, 2023 12:56AM
March 22, 2023 01:34PM
Re: IF ELSE
March 22, 2023 05:02PM
March 22, 2023 07:21PM
March 23, 2023 01:54AM
March 26, 2023 06:24PM


Sorry, you can't reply to this topic. It has been closed.

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.