mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 11:32:03 +00:00
13 lines
354 B
Markdown
13 lines
354 B
Markdown
---
|
|
toc_priority: 45
|
|
toc_title: EXISTS
|
|
---
|
|
|
|
# EXISTS Statement {#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.
|