Skip to content
ClickHouse Docs

EXCEPT modifier

Autogenerated from ClickHouse system tables

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

Parentheses are optional when excluding a single column.

Examples

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