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

13 lines
362 B
Markdown
Raw Normal View History

2020-07-11 11:05:49 +00:00
---
sidebar_position: 45
sidebar_label: 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.