version_major

Sys Schema is available from MariaDB 10.6.

Syntax

sys.version_major()

Description

version_major is a stored function available with the Sys Schema.

It returns the MariaDB Server major release version.

Examples

SELECT VERSION(),  sys.version_major() AS major,   sys.version_minor() AS minor,  sys.version_patch() AS patch; +----------------+-------+-------+-------+ | VERSION() | major | minor | patch | +----------------+-------+-------+-------+ | 10.8.2-MariaDB | 10 | 8 | 2 | +----------------+-------+-------+-------+

See Also

This page is licensed: CC BY-SA / Gnu FDL

Last updated

Was this helpful?