mysql>table INFORMATION_SCHEMA.INNODB_TABLESPACES; +------------+------------------+-------+----------------------+-----------+---------------+------------+---------------+-----------+----------------+-----------------+----------------+---------------+------------+--------+ | SPACE | NAME | FLAG | ROW_FORMAT | PAGE_SIZE | ZIP_PAGE_SIZE | SPACE_TYPE | FS_BLOCK_SIZE | FILE_SIZE | ALLOCATED_SIZE | AUTOEXTEND_SIZE | SERVER_VERSION | SPACE_VERSION | ENCRYPTION | STATE | +------------+------------------+-------+----------------------+-----------+---------------+------------+---------------+-----------+----------------+-----------------+----------------+---------------+------------+--------+ |4294967294| mysql |18432|Any|16384|0| General |4096|26214400|26214400|0|8.4.0|1| N | normal | |4294967293| innodb_temporary |4096| Compact or Redundant |16384|0|System|4096|12582912|12582912|0|8.4.0|1| N | normal | |4294967279| innodb_undo_001 |0| Undo |16384|0| Undo |4096|16777216|16777216|0|8.4.0|1| N | active | |4294967278| innodb_undo_002 |0| Undo |16384|0| Undo |4096|16777216|16777216|0|8.4.0|1| N | active | |1| sys/sys_config |16417|Dynamic|16384|0| Single |4096|114688|114688|0|8.4.0|1| N | normal | |2| yandb/t |16417|Dynamic|16384|0| Single |4096|114688|114688|0|8.4.0|1| N | normal | +------------+------------------+-------+----------------------+-----------+---------------+------------+---------------+-----------+----------------+-----------------+----------------+---------------+------------+--------+ 6rowsinset (0.00 sec)
with t as ( select'manual'as rk unionselect'parallel' unionselect'qualify' unionselect'tablesample' ) select SCHEMA_NAME from information_schema.SCHEMATA wherelower(SCHEMA_NAME) in (select rk from t);
with t as ( select'manual'as rk unionselect'parallel' unionselect'qualify' unionselect'tablesample' ) select table_schema, table_name, table_type from information_schema.tables wherelower(table_schema) in (select rk from t) orlower(table_name) in (select rk from t);