Name
DROP PROCEDURE
Synopsis
DROP PROCEDURE [IF EXISTS] procedure
This statement deletes a stored procedure. The IF
EXISTS
keyword prevents error messages when the stored
procedure doesn’t exist. Instead, a note will be generated, which can
be displayed afterward by executing the SHOW
WARNINGS
statement. This statement requires the
ALTER ROUTINE
privilege for the stored procedure
given, which is automatically granted to the creator of the stored
procedure.
Get MySQL in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.