Documentation Home
MySQL 5.7 C API Developer Guide
Download this Manual
PDF (US Ltr) - 1.1Mb
PDF (A4) - 1.1Mb


5.4.45 mysql_list_tables()

MYSQL_RES *mysql_list_tables(MYSQL *mysql,                  const char *wild)

Description

Returns a result set consisting of table names in the current database that match the simple regular expression specified by thewild parameter.wild may contain the wildcard characters% or_, or may be aNULL pointer to match all tables. Callingmysql_list_tables() is similar to executing the querySHOW TABLES [LIKEwild].

You must free the result set withmysql_free_result().

Return Values

AMYSQL_RES result set for success.NULL if an error occurred.

Errors