May 2020
Beginner
564 pages
14h 9m
English
In order to alter a store procedure, you will need to drop it and then recreate it. Let's try to alter the stored procedure that we just created in the previous section. First, drop it with the following query:
DROP PROCEDURE getplayergameinfo;
You can now recreate it with any modifications that you want to make. Be careful when dropping a stored procedure because you can't restore the same without having a database backup. You can do this in MySQL Workbench by right-clicking on Stored Procedures in the Schemas panel, then choosing Send to SQL Editor, and then choosing Create Statement, as shown in the following screenshot:
Make sure to script out the stored procedure before dropping it. ...
Read now
Unlock full access