May 2020
Beginner
564 pages
14h 9m
English
In order to alter a function, you will need to drop it, then recreate it. If you wanted to alter the function you just created in the previous section, you would drop it with the following query:
DROP FUNCTION hittinglevel;
Then, you would have to recreate it with any modifications you wanted to make. Be careful when dropping because you can't restore the function without having a database backup. You can do this in MySQL Workbench by right-clicking on the function in the SCHEMAS panel, then choosing Send to SQL Editor, and then choosing Create Statement, as shown in the following screenshot:

Make ...
Read now
Unlock full access