ClickHouse/docs/en/sql-reference/statements/exists.md

13 lines
355 B
Markdown
Raw Normal View History

2020-07-11 11:05:49 +00:00
---
toc_priority: 45
2020-07-23 13:06:24 +00:00
toc_title: EXISTS
2020-07-11 11:05:49 +00:00
---
# 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 doesnt exist, or `1` if the table exists in the specified database.