mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
14 lines
384 B
Markdown
14 lines
384 B
Markdown
---
|
|
slug: /en/sql-reference/statements/exists
|
|
sidebar_position: 45
|
|
sidebar_label: EXISTS
|
|
---
|
|
|
|
# EXISTS Statement
|
|
|
|
``` sql
|
|
EXISTS [TEMPORARY] [TABLE|DICTIONARY] [db.]name [INTO OUTFILE filename] [FORMAT format]
|
|
```
|
|
|
|
Returns a single `UInt8`-type column, which contains the single value `0` if the table or database does not exist, or `1` if the table exists in the specified database.
|