# USE

Use a database or schema.

## Syntax

```sql
USE db_name

```

## Remarks

* `db_name` is the name of a SingleStore database.
* This command must be run on the master aggregator or a child aggregator node (see [Node Requirements for SingleStore Commands](https://docs.singlestore.com/db/v9.1/reference/sql-reference/cluster-management-commands.md) ).
* Refer to the [Permissions Matrix](https://docs.singlestore.com/db/v9.1/reference/sql-reference/security-management-commands/permissions-matrix.md) for the required permissions.

## Example

```sql
USE test;

```

```output

Database changed

```

***

Modified at: May 23, 2024

Source: [/db/v9.1/reference/sql-reference/data-manipulation-language-dml/use/](https://docs.singlestore.com/db/v9.1/reference/sql-reference/data-manipulation-language-dml/use/)

(An index of the documentation is available at /llms.txt)
