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

13 lines
354 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]
```
2021-05-27 19:44:11 +00:00
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.