@@ -35,7 +35,8 @@ FROM information_schema.tables WHERE table_name in ('t1', 't2');
35
35
TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CHECKSUM UPDATE_TIME CHECK_TIME
36
36
24 682 16384 0 0 0 58 NULL # NULL
37
37
24 13 416 3659174697238527 2048 104 33 NULL # NULL
38
- SELECT * FROM information_schema.statistics WHERE table_name='t3';
38
+ SELECT * FROM information_schema.statistics WHERE table_name='t3'
39
+ ORDER BY index_name, seq_in_index;
39
40
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLUMN_NAME COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT INDEX_COMMENT IS_VISIBLE
40
41
def test t3 1 test f0 1 f0 A 32 NULL NULL BTREE YES
41
42
def test t3 1 test f1 1 f1 A 4 NULL NULL YES BTREE YES
@@ -50,7 +51,8 @@ FROM information_schema.tables WHERE table_name in ('t1', 't2');
50
51
TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CHECKSUM UPDATE_TIME CHECK_TIME
51
52
24 682 16384 0 0 0 58 NULL # NULL
52
53
24 13 416 3659174697238527 2048 104 33 NULL # NULL
53
- SELECT * FROM information_schema.statistics WHERE table_name='t3';
54
+ SELECT * FROM information_schema.statistics WHERE table_name='t3'
55
+ ORDER BY index_name, seq_in_index;
54
56
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLUMN_NAME COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT INDEX_COMMENT IS_VISIBLE
55
57
def test t3 1 test f0 1 f0 A 32 NULL NULL BTREE YES
56
58
def test t3 1 test f1 1 f1 A 4 NULL NULL YES BTREE YES
@@ -71,9 +73,9 @@ Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_par
71
73
t1 0 PRIMARY 1 f2 A 0 NULL NULL BTREE YES
72
74
t1 0 f1 1 f1 A 0 NULL NULL YES BTREE YES
73
75
SELECT * FROM information_schema.tmp_tables_columns;
74
- ERROR 42S02: Unknown table 'tmp_tables_columns ' in information_schema
76
+ ERROR 42S02: Unknown table 'TMP_TABLES_COLUMNS ' in information_schema
75
77
SELECT * FROM information_schema.tmp_tables_keys;
76
- ERROR 42S02: Unknown table 'tmp_tables_keys ' in information_schema
78
+ ERROR 42S02: Unknown table 'TMP_TABLES_KEYS ' in information_schema
77
79
DROP TEMPORARY TABLE t1;
78
80
CREATE TABLE t1 (f1 int);
79
81
SELECT TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE
0 commit comments