1 database.inc db_find_tables($table_expression)

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

Parameters

string $table_expression: An SQL expression, for example "simpletest%" (without the quotes). BEWARE: this is not prefixed, the caller should take care of that.

Return value

array: Array with both the keys and the values containing the matching tables.

Related topics

File

core/includes/database/database.inc, line 3075
Core systems for the database layer.

Code

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