MySQL Forums
Forum List  »  Stored Procedures

Re: MSSQL Developer trying to learn MySQL
Posted by: RJ Regalado
Date: May 26, 2021 04:21AM

Thanks, Peter, the link really helps.

But I have a question that I can't figure out in MySQL


IF NOT EXISTS ( SELECT 1
FROM @vacinesTbl
WHERE ID = @vaccineID) BEGIN
RAISERROR('sql|Invalid Vaccine', 11, 1)
END


notice that it doesn't have ELSE. MySQL is requiring me to have an ELSE statement

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: MSSQL Developer trying to learn MySQL
187
May 26, 2021 04:21AM


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.