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

17 lines
378 B
Markdown
Raw Normal View History

2020-07-11 11:05:49 +00:00
---
toc_priority: 54
2020-07-23 13:03:56 +00:00
toc_title: USE
2020-07-11 11:05:49 +00:00
---
# USE Statement {#use}
``` 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 cant be made when using the HTTP protocol, since there is no concept of a session.