doc-exports/docs/dli/sqlreference/dli_08_0284.html
Su, Xiaomeng 04d4597cf3 dli_sqlreference_0511_version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
Co-committed-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
2023-11-02 14:34:08 +00:00

3.2 KiB

Deleting a Function

Function

This statement is used to delete functions.

Syntax

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

Keywords

  • TEMPORARY: Indicates whether the function to be deleted is a temporary function.
  • IF EXISTS: Used when the function to be deleted does not exist to avoid system errors.

Precautions

  • An existing function is deleted. If the function to be deleted does not exist, the system reports an error.
  • Only the HIVE syntax is supported.

Example

The mergeBill function is deleted.

1
DROP FUNCTION mergeBill;