mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 21:51:57 +00:00
13 lines
401 B
Markdown
13 lines
401 B
Markdown
---
|
|
slug: /zh/sql-reference/statements/exists
|
|
sidebar_position: 45
|
|
sidebar_label: EXISTS
|
|
---
|
|
|
|
# EXISTS 语句 {#exists-statement}
|
|
|
|
``` sql
|
|
EXISTS [TEMPORARY] [TABLE|DICTIONARY] [db.]name [INTO OUTFILE filename] [FORMAT format]
|
|
```
|
|
|
|
返回一个单独的 `UInt8`类型的列,如果表或数据库不存在,则包含一个值 `0`,如果表在指定的数据库中存在,则包含一个值 `1`。 |