> ## Documentation Index
> Fetch the complete documentation index at: https://docs.firebolt.io/llms.txt
> Use this file to discover all available pages before exploring further.

> Reference material for CURRENT_DATABASE function

# CURRENT_DATABASE

Returns the current database name

## Syntax

```sql theme={"theme":{"light":"css-variables","dark":"css-variables"}}
CURRENT_DATABASE()
```

## Return Types

`TEXT`

## Example

<div className="query-window">
  ```
  SELECT CURRENT_DATABASE() as database;
  ```

  | database <span>text</span> |
  | :------------------------- |
  | demo\_db                   |

  <p><span>Rows: 1</span><span>Execution time: 5.45ms</span></p>
</div>
