summaryrefslogtreecommitdiff
path: root/mysql-test/r/mysqlshow.result
blob: 2bf8a58de4e34ad4dc1fc65f683cd0a8596ad69c (plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
DROP TABLE IF EXISTS t1,t2,test1,test2;
CREATE TABLE t1 (a int);
INSERT INTO t1 VALUES (1),(2),(3);
CREATE TABLE t2 (a int, b int);
show tables;
Tables_in_test
t1
t2
select "--------------------" as "";

--------------------
Database: test
+--------+
| Tables |
+--------+
| t1     |
| t2     |
+--------+
select "---- -v ------------" as "";

---- -v ------------
Database: test
+--------+----------+
| Tables | Columns  |
+--------+----------+
| t1     |        1 |
| t2     |        2 |
+--------+----------+
2 rows in set.

select "---- -v -v ---------" as "";

---- -v -v ---------
Database: test
+--------+----------+------------+
| Tables | Columns  | Total Rows |
+--------+----------+------------+
| t1     |        1 |          3 |
| t2     |        2 |          0 |
+--------+----------+------------+
2 rows in set.

select "----- -t -----------" as "";

----- -t -----------
Database: test
+--------+------------+
| Tables | table_type |
+--------+------------+
| t1     | BASE TABLE |
| t2     | BASE TABLE |
+--------+------------+
select "---- -v -t ---------" as "";

---- -v -t ---------
Database: test
+--------+------------+----------+
| Tables | table_type | Columns  |
+--------+------------+----------+
| t1     | BASE TABLE |        1 |
| t2     | BASE TABLE |        2 |
+--------+------------+----------+
2 rows in set.

select "---- -v -v -t ------" as "";

---- -v -v -t ------
Database: test
+--------+------------+----------+------------+
| Tables | table_type | Columns  | Total Rows |
+--------+------------+----------+------------+
| t1     | BASE TABLE |        1 |          3 |
| t2     | BASE TABLE |        2 |          0 |
+--------+------------+----------+------------+
2 rows in set.

DROP TABLE t1, t2;
Database: information_schema
+---------------------------------------+
|                Tables                 |
+---------------------------------------+
| CHARACTER_SETS                        |
| COLLATIONS                            |
| COLLATION_CHARACTER_SET_APPLICABILITY |
| COLUMNS                               |
| COLUMN_PRIVILEGES                     |
| KEY_COLUMN_USAGE                      |
| ROUTINES                              |
| SCHEMATA                              |
| SCHEMA_PRIVILEGES                     |
| STATISTICS                            |
| TABLES                                |
| TABLE_CONSTRAINTS                     |
| TABLE_PRIVILEGES                      |
| TRIGGERS                              |
| USER_PRIVILEGES                       |
| VIEWS                                 |
+---------------------------------------+
Database: INFORMATION_SCHEMA
+---------------------------------------+
|                Tables                 |
+---------------------------------------+
| CHARACTER_SETS                        |
| COLLATIONS                            |
| COLLATION_CHARACTER_SET_APPLICABILITY |
| COLUMNS                               |
| COLUMN_PRIVILEGES                     |
| KEY_COLUMN_USAGE                      |
| ROUTINES                              |
| SCHEMATA                              |
| SCHEMA_PRIVILEGES                     |
| STATISTICS                            |
| TABLES                                |
| TABLE_CONSTRAINTS                     |
| TABLE_PRIVILEGES                      |
| TRIGGERS                              |
| USER_PRIVILEGES                       |
| VIEWS                                 |
+---------------------------------------+
Wildcard: inf_rmation_schema
+--------------------+
|     Databases      |
+--------------------+
| information_schema |
+--------------------+
End of 5.0 tests