MySQL VERSION() Function
THE WORLD'S LARGEST WEB DEVELOPER SITE

MySQL VERSION() Function

❮ MySQL Functions

Example

Return the version of the MySQL database:

SELECT VERSION();
Try it Yourself »

Definition and Usage

The VERSION() function returns the version of the MySQL database.

Note: The VERSION() function uses the UTF8 character set (from MySQL 4.1).

Syntax

VERSION()

Technical Details

Works in: MySQL 5.7, MySQL 5.6, MySQL 5.5, MySQL 5.1, MySQL 5.0, MySQL 4.1, MySQL 4.0, MySQL 3.23

❮ MySQL Functions