SQL Tutorial SQL Advanced SQL Database SQL References

MySQL VERSION() Function



The MySQL VERSION() function returns the version of the MySQL database. This function uses UTF8 character set.

Syntax

VERSION()

Parameters

No parameter is required.

Return Value

Returns the version of the MySQL database.

Example:

The example below shows the usage of VERSION() function.

mysql> SELECT VERSION();

The above query will return the version of the MySQL database and the output of the above query will be similar to:

mysql> SELECT VERSION();
Result: '8.0.27'

❮ MySQL Functions