1
DROP TABLE IF EXISTS t1,t2,test1,test2;
2
CREATE TABLE t1 (a int);
3
INSERT INTO t1 VALUES (1),(2),(3);
4
CREATE TABLE t2 (a int, b int);
9
select "--------------------" as "";
19
select "---- -v ------------" as "";
31
select "---- -v -v ---------" as "";
35
+--------+----------+------------+
36
| Tables | Columns | Total Rows |
37
+--------+----------+------------+
40
+--------+----------+------------+
43
select "----- -t -----------" as "";
47
+--------+------------+
48
| Tables | table_type |
49
+--------+------------+
52
+--------+------------+
53
select "---- -v -t ---------" as "";
57
+--------+------------+----------+
58
| Tables | table_type | Columns |
59
+--------+------------+----------+
60
| t1 | BASE TABLE | 1 |
61
| t2 | BASE TABLE | 2 |
62
+--------+------------+----------+
65
select "---- -v -v -t ------" as "";
69
+--------+------------+----------+------------+
70
| Tables | table_type | Columns | Total Rows |
71
+--------+------------+----------+------------+
72
| t1 | BASE TABLE | 1 | 3 |
73
| t2 | BASE TABLE | 2 | 0 |
74
+--------+------------+----------+------------+
78
Database: information_schema
79
+---------------------------------------+
81
+---------------------------------------+
84
| COLLATION_CHARACTER_SET_APPLICABILITY |
97
| REFERENTIAL_CONSTRAINTS |
100
| SCHEMA_PRIVILEGES |
102
| SESSION_VARIABLES |
105
| TABLE_CONSTRAINTS |
110
+---------------------------------------+
111
Database: INFORMATION_SCHEMA
112
+---------------------------------------+
114
+---------------------------------------+
117
| COLLATION_CHARACTER_SET_APPLICABILITY |
119
| COLUMN_PRIVILEGES |
130
| REFERENTIAL_CONSTRAINTS |
133
| SCHEMA_PRIVILEGES |
135
| SESSION_VARIABLES |
138
| TABLE_CONSTRAINTS |
143
+---------------------------------------+
144
Wildcard: inf_rmation_schema
145
+--------------------+
147
+--------------------+
148
| information_schema |
149
+--------------------+