MySQL | VERSION( ) Function
The MySQL Version() function is used for returning the current version of the MySQL database. This function uses the utf8 character set. Generally, there is a suffix returned after the version number. The Version() function does not require any parameter to be passed.
Syntax:
VERSION()
Parameters Used:
It does not require any parameter or argument to be passed.
Return Value:
The MySQL Version() function returns the version of the MySQL database as a string.
Supported Versions of MySQL:
- MySQL 5.7
- MySQL 5.6
- MySQL 5.5
- MySQL 5.1
- MySQL 5.0
- MySQL 4.1
- MySQL 4.0
- MySQL 3.23
Example: Implementing Version() function in MySQL.
SELECT VERSION();
Output:
5.7.26-0ubuntu0.18.04.1
Recommended Posts:
- MySQL | MD5 Function
- MySQL | IF( ) Function
- MySQL | BIN() Function
- MySQL | Group_CONCAT() Function
- MySQL | SESSION_USER( ) Function
- MySQL | LEAD() and LAG() Function
- MySQL | DEFAULT() Function
- MySQL | CONV( ) Function
- MySQL | SHA1( ) Function
- MySQL | LAST_DAY() Function
- MySQL | COALESCE( ) Function
- MySQL | AES_DECRYPT ( ) Function
- MySQL | CAST( ) Function
- MySQL | AES_ENCRYPT ( ) Function
- MySQL | UNCOMPRESS( ) Function
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

