Updated on 2026-11-06 GMT+08:00

Deleting a Function Using SQL

Description

Deletes a specified function.

Syntax

1
DROP [TEMPORARY] FUNCTION [IF EXISTS] [db_name.] function_name;

Requirements

None

Keywords

  • TEMPORARY: Indicates whether the function to be deleted is a temporary function.
  • IF EXISTS: Prevents an error message from being displayed if the function to be deleted does not exist.

Example

1
DROP FUNCTION remote_udaf;