DROP_SAVED_QUERY

DROP_SAVED_QUERY drops a previously saved query.

Read more in the saved_queries guide.

See also: SAVE_QUERY, EXECUTE_SAVED_QUERY, SHOW_SAVED_QUERY, LIST_SAVED_QUERIES.

Permissions

Dropping a saved query requires no special permissions.

Syntax

drop_saved_query_statement ::=
    SELECT DROP_SAVED_QUERY(saved_query_name)
    ;

saved_query_name ::= string_literal

Returns

If saved query is dropped successfully, returns nothing.

Parameters

Parameter

Description

saved_query_name

The name of the query to drop

Examples

Dropping a previously saved query

t=> SELECT DROP_SAVED_QUERY('select_all');
executed