Skip to content
ClickHouse Docs
ClickHouse DocsClickHouse Docs

EXCEPT modifier

Specifies the names of one or more columns to exclude from the result. All matching column names are omitted from the output.

Syntax

SELECT <expr> EXCEPT ( col_name1 [, col_name2, col_name3, ...] ) FROM [db.]table_name

Examples

Querysql
SELECT * EXCEPT (i) from columns_transformers;
Responseresponse
┌──j─┬───k─┐
│ 10 │ 324 │
│  8 │  23 │
└────┴─────┘
Navigation