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

14 lines
393 B
Markdown
Raw Normal View History

2020-07-11 11:05:49 +00:00
---
2022-08-28 14:53:34 +00:00
slug: /en/sql-reference/statements/exists
sidebar_position: 45
sidebar_label: EXISTS
2020-07-11 11:05:49 +00:00
---
2022-06-02 10:55:18 +00:00
# EXISTS Statement
2020-07-11 11:05:49 +00:00
``` sql
2024-10-01 02:12:19 +00:00
EXISTS [TEMPORARY] [TABLE|DICTIONARY|DATABASE] [db.]name [INTO OUTFILE filename] [FORMAT format]
2020-07-11 11:05:49 +00:00
```
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.