ClickHouse/docs/en/sql-reference/statements/exists.md
2020-07-23 16:06:24 +03:00

13 lines
355 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
toc_priority: 47
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 doesnt exist, or `1` if the table exists in the specified database.