All pages
Powered by GitBook
1 of 1

Loading...

sys_get_config

The sys_get_config function retrieves the value of a specified configuration option from the sys_config table, or a user variable if set.

Syntax

sys.sys_get_config(name,default)

Description

sys_get_config is a available with the .

The function returns a configuration option value from the . It takes two arguments; name, a configuration option name, and default, which is returned if the given option does not exist in the table.

Both arguments are VARCHAR(128) and can be NULL. Returns NULL if name is NULL, or if the given option is not found and default is NULL.

Examples

See Also

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

stored function
Sys Schema
sys_config table
Sys Schema sys_config Table
SELECT sys.sys_get_config('ps_thread_trx_info.max_length',NULL);
+----------------------------------------------------------+
| sys.sys_get_config('ps_thread_trx_info.max_length',NULL) |
+----------------------------------------------------------+
| 65535                                                    |
+----------------------------------------------------------+

Sys Schema is available from MariaDB 10.6.