format_path

The format_path function replaces specific system paths in a given string with their corresponding system variable names for better readability.

Sys Schema is available from MariaDB 10.6.

Syntax

sys.format_path(path)

Description

format_path is a stored function available with the Sys Schema that, given a path, returns a modified path after replacing subpaths matching the values of various system variables with the variable name.

The system variables that are matched are, in order:

Examples

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

Last updated

Was this helpful?