function db_find_tables

Same name in other branches
  1. 8.9.x core/includes/database.inc \db_find_tables()

Finds all tables that are like the specified base table name.

Parameters

$table_expression: An SQL expression, for example "simpletest%" (without the quotes).

Return value

Array, both the keys and the values are the matching tables.

Related topics

File

includes/database/database.inc, line 2908

Code

function db_find_tables($table_expression) {
    return Database::getConnection()->schema()
        ->findTables($table_expression);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.