DROP FUNCTION
The DROP FUNCTION statement removes a stored function from the database, deleting its definition and associated privileges.
Syntax
DROP FUNCTION [IF EXISTS] f_nameDescription
IF EXISTS
Examples
DROP FUNCTION hello;
Query OK, 0 rows affected (0.042 sec)
DROP FUNCTION hello;
ERROR 1305 (42000): FUNCTION test.hello does not exist
DROP FUNCTION IF EXISTS hello;
Query OK, 0 rows affected, 1 warning (0.000 sec)
SHOW WARNINGS;
+-------+------+------------------------------------+
| Level | Code | Message |
+-------+------+------------------------------------+
| Note | 1305 | FUNCTION test.hello does not exist |
+-------+------+------------------------------------+See Also
Last updated
Was this helpful?

