1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
show create table data_dictionary.TABLE_DEFINITION_CACHE;
Table Create Table
TABLE_DEFINITION_CACHE CREATE TABLE `TABLE_DEFINITION_CACHE` (
`TABLE_SCHEMA` VARCHAR(256) NOT NULL,
`TABLE_NAME` VARCHAR(256) NOT NULL,
`VERSION` BIGINT NOT NULL,
`TABLE_COUNT` BIGINT NOT NULL,
`IS_NAME_LOCKED` BOOLEAN NOT NULL
) ENGINE=FunctionEngine COLLATE = utf8_general_ci REPLICATE = FALSE DEFINER SYSTEM
select count(*) FROM data_dictionary.TABLE_DEFINITION_CACHE;
count(*)
#
flush tables;
select * FROM data_dictionary.TABLE_DEFINITION_CACHE ORDER BY TABLE_SCHEMA, TABLE_NAME;
TABLE_SCHEMA TABLE_NAME VERSION TABLE_COUNT IS_NAME_LOCKED
# table_definition_cache # # #
create table a ( a int);
create table b ( b int);
select * FROM a CROSS JOIN b;
a b
select * FROM data_dictionary.TABLE_DEFINITION_CACHE ORDER BY TABLE_SCHEMA, TABLE_NAME;
TABLE_SCHEMA TABLE_NAME VERSION TABLE_COUNT IS_NAME_LOCKED
# table_definition_cache # # #
# a # # #
# b # # #
DROP TABLES a,b;
|