MySQL Forums
Forum List  »  Stored Procedures

Re: Problem with stored procedures on phpmyadmin
Posted by: Andrew James
Date: August 12, 2016 12:07PM

then how do I convert from sql to mysql stored procedure and for example in sql stored procedure is :

CREATE procedure GetallFiles()
as
begin
if not exists(select files.Files,Users.FirstName,Users.LastName,Users.EmailAddress from files,Users
where files.UserID = Users.UserID)
raiserror('cannot find files records',16,1)
end
begin

select files.Files,Users.firstname,Users.lastname,Users.EmailAddress from files,Users
where files.UserID = Users.UserID
end
return

since mysql does not have raiserror.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Problem with stored procedures on phpmyadmin
356
August 12, 2016 12:07PM


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.