Getting the MySQL or MariaDB version

Published on 2024-01-06 • Modified on 2024-01-06

This snippet shows how to obtain the MySQL or MariaDB version. Yes, this is as simple as this. Note that this is the exact same query with PostgreSQL.


SELECT version();

 More on Stackoverflow  Random snippet

  Work with me!