ClickHouse/docs/en/sql-reference/statements/drop.md
sevirov 8f03e526a4
DOCSUP-3200: Edit and translate to Russian (#16204)
* Edit and translate

Отредактировал английскую версию текстов документов и перевел изменения на русский язык.

* Update trace_log.md

Исправляю битые ссылки.

* Fixing broken links

Исправил битые ссылки.

* Fixing broken links

Поправил битую ссылку, добавив раздел в русскую версию.

Co-authored-by: Dmitriy <sevirov@yandex-team.ru>
2020-10-26 13:09:41 +03:00

2.0 KiB
Raw Blame History

toc_priority toc_title
46 DROP

DROP Statements

Deletes existing entity. If the IF EXISTS clause is specified, these queries dont return an error if the entity doesnt exist.

DROP DATABASE

Deletes all tables inside the db database, then deletes the db database itself.

Syntax:

DROP DATABASE [IF EXISTS] db [ON CLUSTER cluster]

DROP TABLE

Deletes the table.

Syntax:

DROP [TEMPORARY] TABLE [IF EXISTS] [db.]name [ON CLUSTER cluster]

DROP DICTIONARY

Deletes the dictionary.

Syntax:

DROP DICTIONARY [IF EXISTS] [db.]name

DROP USER

Deletes a user.

Syntax:

DROP USER [IF EXISTS] name [,...] [ON CLUSTER cluster_name]

DROP ROLE

Deletes a role. The deleted role is revoked from all the entities where it was assigned.

Syntax:

DROP ROLE [IF EXISTS] name [,...] [ON CLUSTER cluster_name]

DROP ROW POLICY

Deletes a row policy. Deleted row policy is revoked from all the entities where it was assigned.

Syntax:

DROP [ROW] POLICY [IF EXISTS] name [,...] ON [database.]table [,...] [ON CLUSTER cluster_name]

DROP QUOTA

Deletes a quota. The deleted quota is revoked from all the entities where it was assigned.

Syntax:

DROP QUOTA [IF EXISTS] name [,...] [ON CLUSTER cluster_name]

DROP SETTINGS PROFILE

Deletes a settings profile. The deleted settings profile is revoked from all the entities where it was assigned.

Syntax:

DROP [SETTINGS] PROFILE [IF EXISTS] name [,...] [ON CLUSTER cluster_name]

DROP VIEW

Deletes a view. Views can be deleted by a DROP TABLE command as well but DROP VIEW checks that [db.]name is a view.

Syntax:

DROP VIEW [IF EXISTS] [db.]name [ON CLUSTER cluster]

Оriginal article