mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
18 lines
418 B
Markdown
18 lines
418 B
Markdown
---
|
||
slug: /en/sql-reference/statements/use
|
||
sidebar_position: 53
|
||
sidebar_label: USE
|
||
---
|
||
|
||
# USE Statement
|
||
|
||
``` sql
|
||
USE db
|
||
```
|
||
|
||
Lets you set the current database for the session.
|
||
|
||
The current database is used for searching for tables if the database is not explicitly defined in the query with a dot before the table name.
|
||
|
||
This query can’t be made when using the HTTP protocol, since there is no concept of a session.
|