PHPMyAdmin includes an 'add routine' and 'edit routine' panel in newer versions. The developers talked about how it could be used to write routines that are 'hundreds of lines long', but they only showed single statement routines when they were demonstrating the new features.
https://www.youtube.com/watch?v=7ZRZoCsrKis
The moment I start writing more than one statement it starts giving me syntax errors. Using semicolons doesn't help. Adding "Begin ... End" doesn't help. I just want to know how to write multiple statements in routines, functions, events, and triggers, so that I can automate my database's core functions.
Edit: Jeremy Miller was able to answer my question. (https://stackoverflow.com/a/25905326/4052662)
I had to upgrade my PHPMyAdmin which meant upgrading MySQL, so... now for the answer. When I tried this using a test routine, I kept getting errors, but fortunately the dialog showed the created query. I believe what you're missing is adding in BEGIN
and END
(if you did what I did).
I took a screen shot of what worked, though, so hoping this gets you going: