arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

extract_table_from_file_name

This function extracts and returns the table name from a given file path, determined solely by parsing the path string.

circle-info

Sys Schema is available from MariaDB 10.6.

hashtag
Syntax

sys.extract_table_from_file_name(path)

hashtag
Description

extract_table_from_file_name is a available with the .

Given a file path, it returns the table name.

The function does not examine anything on disk. The return value, a VARCHAR(64), is determined solely from the provided path.

hashtag
Examples

hashtag
See also

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

SELECT sys.extract_table_from_file_name('/usr/local/mysql/data/db/t1.ibd');
+---------------------------------------------------------------------+
| sys.extract_table_from_file_name('/usr/local/mysql/data/db/t1.ibd') |
+---------------------------------------------------------------------+
| t1                                                                  |
+---------------------------------------------------------------------+
stored function
Sys Schema
extract_schema_from_file_name()
spinner