mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 19:02:04 +00:00
12 lines
351 B
Markdown
12 lines
351 B
Markdown
---
|
|
toc_priority: 45
|
|
toc_title: EXISTS
|
|
---
|
|
|
|
# EXISTS 语句 {#exists-statement}
|
|
|
|
``` sql
|
|
EXISTS [TEMPORARY] [TABLE|DICTIONARY] [db.]name [INTO OUTFILE filename] [FORMAT format]
|
|
```
|
|
|
|
返回一个单独的 `UInt8`类型的列,如果表或数据库不存在,则包含一个值 `0`,如果表在指定的数据库中存在,则包含一个值 `1`。 |