Back to Starrocks

current_version

docs/en/sql-reference/sql-functions/utility-functions/current_version.md

4.1.0669 B
Original Source

current_version

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

Syntax

Haskell
current_version();

@@version_comment;

Parameters

None

Return value

Returns a value of the VARCHAR type.

Examples

Plain
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)