DROP PROCEDURE statement The DROP PROCEDURE statement removes the specified Java stored procedure.

A stored procedure is created by a and is called by a .

Syntax DROP PROCEDURE procedureName

Identifies the particular procedure to be dropped, and is valid only if there is exactly one procedure instance with the procedureName in the schema. The identified procedure can have any number of parameters defined for it.

An error will occur in any of the following circumstances:

  • If no procedure with the indicated name exists in the named or implied schema (the error is SQLSTATE 42704)
  • If there is more than one specific instance of the procedure in the named or implied schema
  • If you try to drop a user-defined procedure that is invoked in a trigger