ClickHouse/docs/en/sql-reference/statements/exists.md
2022-04-09 07:34:21 -06:00

13 lines
362 B
Markdown

---
sidebar_position: 45
sidebar_label: 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.