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

