MySQL Forums :: Stored Procedures :: Problem with stored procedures on phpmyadmin


Advanced Search

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
Problem with stored procedures on phpmyadmin 2676 Andrew James 08/11/2016 03:20PM
Re: Problem with stored procedures on phpmyadmin 334 Peter Brawley 08/11/2016 06:41PM
Re: Problem with stored procedures on phpmyadmin 291 Andrew James 08/12/2016 12:07PM
Re: Problem with stored procedures on phpmyadmin 303 Peter Brawley 08/12/2016 12:31PM
Re: Problem with stored procedures on phpmyadmin 302 Andrew James 08/16/2016 02:37PM
Re: Problem with stored procedures on phpmyadmin 273 Peter Brawley 08/16/2016 02:52PM
Re: Problem with stored procedures on phpmyadmin 305 Andrew James 08/17/2016 11:23AM
Re: Problem with stored procedures on phpmyadmin 288 Peter Brawley 08/17/2016 12:17PM
Re: Problem with stored procedures on phpmyadmin 292 Andrew James 08/17/2016 02:35PM
Re: Problem with stored procedures on phpmyadmin 289 Peter Brawley 08/17/2016 04:19PM


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.