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

# current_version

> Returns the current version of the database.

Returns the current version of the database. Two syntaxes are provided for compatibility with different clients.

## Syntax

```Haskell theme={null}
current_version();

@@version_comment;
```

## Parameters

None

## Return value

Returns a value of the VARCHAR type.

## Examples

```Plain Text theme={null}
mysql> select current_version();
+-------------------+
| current_version() |
+-------------------+
| 2.1.2 0782ad7     |
+-------------------+
1 row in set (0.00 sec)

mysql> select @@version_comment;
+-------------------------+
| @@version_comment       |
+-------------------------+
| StarRocks version 2.1.2 |
+-------------------------+
1 row in set (0.01 sec)
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.