~drizzle-trunk/drizzle/development

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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
select * from INFORMATION_SCHEMA.SCHEMATA;
CATALOG_NAME	SCHEMA_NAME	SCHEMA_OWNER	DEFAULT_CHARACTER_SET_CATALOG	DEFAULT_CHARACTER_SET_SCHEMA	DEFAULT_CHARACTER_SET_NAME
	data_dictionary				
	information_schema				
	mysql				
	test				
select * from INFORMATION_SCHEMA.TABLES;
TABLE_CATALOG	TABLE_SCHEMA	TABLE_NAME	TABLE_TYPE
LOCAL	DATA_DICTIONARY	CHARACTER_SETS	VIEW
LOCAL	DATA_DICTIONARY	COLLATIONS	VIEW
LOCAL	DATA_DICTIONARY	COLUMNS	VIEW
LOCAL	DATA_DICTIONARY	CUMULATIVE_SQL_COMMANDS	VIEW
LOCAL	DATA_DICTIONARY	CUMULATIVE_USER_STATS	VIEW
LOCAL	DATA_DICTIONARY	CURRENT_SQL_COMMANDS	VIEW
LOCAL	DATA_DICTIONARY	DRIZZLE_PROTOCOL_STATUS	VIEW
LOCAL	DATA_DICTIONARY	FOREIGN_KEYS	VIEW
LOCAL	DATA_DICTIONARY	GLOBAL_STATEMENTS	VIEW
LOCAL	DATA_DICTIONARY	GLOBAL_STATUS	VIEW
LOCAL	DATA_DICTIONARY	GLOBAL_VARIABLES	VIEW
LOCAL	DATA_DICTIONARY	INDEXES	VIEW
LOCAL	DATA_DICTIONARY	INDEX_PARTS	VIEW
LOCAL	DATA_DICTIONARY	INNODB_CMP	VIEW
LOCAL	DATA_DICTIONARY	INNODB_CMPMEM	VIEW
LOCAL	DATA_DICTIONARY	INNODB_CMPMEM_RESET	VIEW
LOCAL	DATA_DICTIONARY	INNODB_CMP_RESET	VIEW
LOCAL	DATA_DICTIONARY	INNODB_INTERNAL_TABLES	VIEW
LOCAL	DATA_DICTIONARY	INNODB_LOCKS	VIEW
LOCAL	DATA_DICTIONARY	INNODB_LOCK_WAITS	VIEW
LOCAL	DATA_DICTIONARY	INNODB_STATUS	VIEW
LOCAL	DATA_DICTIONARY	INNODB_TRX	VIEW
LOCAL	DATA_DICTIONARY	MODULES	VIEW
LOCAL	DATA_DICTIONARY	MYSQL_PROTOCOL_STATUS	VIEW
LOCAL	DATA_DICTIONARY	PLUGINS	VIEW
LOCAL	DATA_DICTIONARY	PROCESSLIST	VIEW
LOCAL	DATA_DICTIONARY	REPLICATION_STREAMS	VIEW
LOCAL	DATA_DICTIONARY	SCHEMAS	VIEW
LOCAL	DATA_DICTIONARY	SCHEMA_SQL_DEFINITION	VIEW
LOCAL	DATA_DICTIONARY	SCOREBOARD_STATISTICS	VIEW
LOCAL	DATA_DICTIONARY	SESSION_STATEMENTS	VIEW
LOCAL	DATA_DICTIONARY	SESSION_STATUS	VIEW
LOCAL	DATA_DICTIONARY	SESSION_VARIABLES	VIEW
LOCAL	DATA_DICTIONARY	SHOW_COLUMNS	VIEW
LOCAL	DATA_DICTIONARY	SHOW_INDEXES	VIEW
LOCAL	DATA_DICTIONARY	SHOW_SCHEMAS	VIEW
LOCAL	DATA_DICTIONARY	SHOW_TABLES	VIEW
LOCAL	DATA_DICTIONARY	SHOW_TABLE_STATUS	VIEW
LOCAL	DATA_DICTIONARY	SHOW_TEMPORARY_TABLES	VIEW
LOCAL	DATA_DICTIONARY	TABLES	VIEW
LOCAL	DATA_DICTIONARY	TABLE_CACHE	VIEW
LOCAL	DATA_DICTIONARY	TABLE_CONSTRAINTS	VIEW
LOCAL	DATA_DICTIONARY	TABLE_DEFINITION_CACHE	VIEW
LOCAL	DATA_DICTIONARY	TABLE_SQL_DEFINITION	VIEW
LOCAL	DATA_DICTIONARY	USER_LOCKS	VIEW
LOCAL	INFORMATION_SCHEMA	CHECK_CONSTRAINTS	VIEW
LOCAL	INFORMATION_SCHEMA	COLUMNS	VIEW
LOCAL	INFORMATION_SCHEMA	COLUMN_DOMAIN_USAGE	VIEW
LOCAL	INFORMATION_SCHEMA	COLUMN_PRIVILEGES	VIEW
LOCAL	INFORMATION_SCHEMA	CONSTRAINT_COLUMN_USAGE	VIEW
LOCAL	INFORMATION_SCHEMA	CONSTRAINT_TABLE_USAGE	VIEW
LOCAL	INFORMATION_SCHEMA	DOMAINS	VIEW
LOCAL	INFORMATION_SCHEMA	DOMAIN_CONSTRAINTS	VIEW
LOCAL	INFORMATION_SCHEMA	KEY_COLUMN_USAGE	VIEW
LOCAL	INFORMATION_SCHEMA	PARAMETERS	VIEW
LOCAL	INFORMATION_SCHEMA	REFERENTIAL_CONSTRAINTS	VIEW
LOCAL	INFORMATION_SCHEMA	ROUTINES	VIEW
LOCAL	INFORMATION_SCHEMA	ROUTINE_COLUMNS	VIEW
LOCAL	INFORMATION_SCHEMA	SCHEMATA	VIEW
LOCAL	INFORMATION_SCHEMA	TABLES	VIEW
LOCAL	INFORMATION_SCHEMA	TABLE_CONSTRAINTS	VIEW
LOCAL	INFORMATION_SCHEMA	TABLE_PRIVILEGES	VIEW
LOCAL	INFORMATION_SCHEMA	VIEWS	VIEW
LOCAL	INFORMATION_SCHEMA	VIEW_COLUMN_USAGE	VIEW
LOCAL	INFORMATION_SCHEMA	VIEW_TABLE_USAGE	VIEW
use information_schema;
show schemas;
Database
DATA_DICTIONARY
INFORMATION_SCHEMA
mysql
test
select * from INFORMATION_SCHEMA.TABLES;
TABLE_CATALOG	TABLE_SCHEMA	TABLE_NAME	TABLE_TYPE
LOCAL	DATA_DICTIONARY	CHARACTER_SETS	VIEW
LOCAL	DATA_DICTIONARY	COLLATIONS	VIEW
LOCAL	DATA_DICTIONARY	COLUMNS	VIEW
LOCAL	DATA_DICTIONARY	CUMULATIVE_SQL_COMMANDS	VIEW
LOCAL	DATA_DICTIONARY	CUMULATIVE_USER_STATS	VIEW
LOCAL	DATA_DICTIONARY	CURRENT_SQL_COMMANDS	VIEW
LOCAL	DATA_DICTIONARY	DRIZZLE_PROTOCOL_STATUS	VIEW
LOCAL	DATA_DICTIONARY	FOREIGN_KEYS	VIEW
LOCAL	DATA_DICTIONARY	GLOBAL_STATEMENTS	VIEW
LOCAL	DATA_DICTIONARY	GLOBAL_STATUS	VIEW
LOCAL	DATA_DICTIONARY	GLOBAL_VARIABLES	VIEW
LOCAL	DATA_DICTIONARY	INDEXES	VIEW
LOCAL	DATA_DICTIONARY	INDEX_PARTS	VIEW
LOCAL	DATA_DICTIONARY	INNODB_CMP	VIEW
LOCAL	DATA_DICTIONARY	INNODB_CMPMEM	VIEW
LOCAL	DATA_DICTIONARY	INNODB_CMPMEM_RESET	VIEW
LOCAL	DATA_DICTIONARY	INNODB_CMP_RESET	VIEW
LOCAL	DATA_DICTIONARY	INNODB_INTERNAL_TABLES	VIEW
LOCAL	DATA_DICTIONARY	INNODB_LOCKS	VIEW
LOCAL	DATA_DICTIONARY	INNODB_LOCK_WAITS	VIEW
LOCAL	DATA_DICTIONARY	INNODB_STATUS	VIEW
LOCAL	DATA_DICTIONARY	INNODB_TRX	VIEW
LOCAL	DATA_DICTIONARY	MODULES	VIEW
LOCAL	DATA_DICTIONARY	MYSQL_PROTOCOL_STATUS	VIEW
LOCAL	DATA_DICTIONARY	PLUGINS	VIEW
LOCAL	DATA_DICTIONARY	PROCESSLIST	VIEW
LOCAL	DATA_DICTIONARY	REPLICATION_STREAMS	VIEW
LOCAL	DATA_DICTIONARY	SCHEMAS	VIEW
LOCAL	DATA_DICTIONARY	SCHEMA_SQL_DEFINITION	VIEW
LOCAL	DATA_DICTIONARY	SCOREBOARD_STATISTICS	VIEW
LOCAL	DATA_DICTIONARY	SESSION_STATEMENTS	VIEW
LOCAL	DATA_DICTIONARY	SESSION_STATUS	VIEW
LOCAL	DATA_DICTIONARY	SESSION_VARIABLES	VIEW
LOCAL	DATA_DICTIONARY	SHOW_COLUMNS	VIEW
LOCAL	DATA_DICTIONARY	SHOW_INDEXES	VIEW
LOCAL	DATA_DICTIONARY	SHOW_SCHEMAS	VIEW
LOCAL	DATA_DICTIONARY	SHOW_TABLES	VIEW
LOCAL	DATA_DICTIONARY	SHOW_TABLE_STATUS	VIEW
LOCAL	DATA_DICTIONARY	SHOW_TEMPORARY_TABLES	VIEW
LOCAL	DATA_DICTIONARY	TABLES	VIEW
LOCAL	DATA_DICTIONARY	TABLE_CACHE	VIEW
LOCAL	DATA_DICTIONARY	TABLE_CONSTRAINTS	VIEW
LOCAL	DATA_DICTIONARY	TABLE_DEFINITION_CACHE	VIEW
LOCAL	DATA_DICTIONARY	TABLE_SQL_DEFINITION	VIEW
LOCAL	DATA_DICTIONARY	USER_LOCKS	VIEW
LOCAL	INFORMATION_SCHEMA	CHECK_CONSTRAINTS	VIEW
LOCAL	INFORMATION_SCHEMA	COLUMNS	VIEW
LOCAL	INFORMATION_SCHEMA	COLUMN_DOMAIN_USAGE	VIEW
LOCAL	INFORMATION_SCHEMA	COLUMN_PRIVILEGES	VIEW
LOCAL	INFORMATION_SCHEMA	CONSTRAINT_COLUMN_USAGE	VIEW
LOCAL	INFORMATION_SCHEMA	CONSTRAINT_TABLE_USAGE	VIEW
LOCAL	INFORMATION_SCHEMA	DOMAINS	VIEW
LOCAL	INFORMATION_SCHEMA	DOMAIN_CONSTRAINTS	VIEW
LOCAL	INFORMATION_SCHEMA	KEY_COLUMN_USAGE	VIEW
LOCAL	INFORMATION_SCHEMA	PARAMETERS	VIEW
LOCAL	INFORMATION_SCHEMA	REFERENTIAL_CONSTRAINTS	VIEW
LOCAL	INFORMATION_SCHEMA	ROUTINES	VIEW
LOCAL	INFORMATION_SCHEMA	ROUTINE_COLUMNS	VIEW
LOCAL	INFORMATION_SCHEMA	SCHEMATA	VIEW
LOCAL	INFORMATION_SCHEMA	TABLES	VIEW
LOCAL	INFORMATION_SCHEMA	TABLE_CONSTRAINTS	VIEW
LOCAL	INFORMATION_SCHEMA	TABLE_PRIVILEGES	VIEW
LOCAL	INFORMATION_SCHEMA	VIEWS	VIEW
LOCAL	INFORMATION_SCHEMA	VIEW_COLUMN_USAGE	VIEW
LOCAL	INFORMATION_SCHEMA	VIEW_TABLE_USAGE	VIEW
select * from INFORMATION_SCHEMA.TABLES WHERE TABLE_CATALOG=NULL;
TABLE_CATALOG	TABLE_SCHEMA	TABLE_NAME	TABLE_TYPE
select * from INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA=NULL;
TABLE_CATALOG	TABLE_SCHEMA	TABLE_NAME	TABLE_TYPE
select * from INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME=NULL;
TABLE_CATALOG	TABLE_SCHEMA	TABLE_NAME	TABLE_TYPE
select * from INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA="information_schema" AND TABLE_TYPE="STANDARD";
TABLE_CATALOG	TABLE_SCHEMA	TABLE_NAME	TABLE_TYPE
select * from INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA="information_schema" AND TABLE_TYPE="VIEW";
TABLE_CATALOG	TABLE_SCHEMA	TABLE_NAME	TABLE_TYPE
LOCAL	INFORMATION_SCHEMA	CHECK_CONSTRAINTS	VIEW
LOCAL	INFORMATION_SCHEMA	COLUMNS	VIEW
LOCAL	INFORMATION_SCHEMA	COLUMN_DOMAIN_USAGE	VIEW
LOCAL	INFORMATION_SCHEMA	COLUMN_PRIVILEGES	VIEW
LOCAL	INFORMATION_SCHEMA	CONSTRAINT_COLUMN_USAGE	VIEW
LOCAL	INFORMATION_SCHEMA	CONSTRAINT_TABLE_USAGE	VIEW
LOCAL	INFORMATION_SCHEMA	DOMAINS	VIEW
LOCAL	INFORMATION_SCHEMA	DOMAIN_CONSTRAINTS	VIEW
LOCAL	INFORMATION_SCHEMA	KEY_COLUMN_USAGE	VIEW
LOCAL	INFORMATION_SCHEMA	PARAMETERS	VIEW
LOCAL	INFORMATION_SCHEMA	REFERENTIAL_CONSTRAINTS	VIEW
LOCAL	INFORMATION_SCHEMA	ROUTINES	VIEW
LOCAL	INFORMATION_SCHEMA	ROUTINE_COLUMNS	VIEW
LOCAL	INFORMATION_SCHEMA	SCHEMATA	VIEW
LOCAL	INFORMATION_SCHEMA	TABLES	VIEW
LOCAL	INFORMATION_SCHEMA	TABLE_CONSTRAINTS	VIEW
LOCAL	INFORMATION_SCHEMA	TABLE_PRIVILEGES	VIEW
LOCAL	INFORMATION_SCHEMA	VIEWS	VIEW
LOCAL	INFORMATION_SCHEMA	VIEW_COLUMN_USAGE	VIEW
LOCAL	INFORMATION_SCHEMA	VIEW_TABLE_USAGE	VIEW
select * from INFORMATION_SCHEMA.TABLES ORDER BY TABLE_SCHEMA, TABLE_NAME;
TABLE_CATALOG	TABLE_SCHEMA	TABLE_NAME	TABLE_TYPE
LOCAL	DATA_DICTIONARY	CHARACTER_SETS	VIEW
LOCAL	DATA_DICTIONARY	COLLATIONS	VIEW
LOCAL	DATA_DICTIONARY	COLUMNS	VIEW
LOCAL	DATA_DICTIONARY	CUMULATIVE_SQL_COMMANDS	VIEW
LOCAL	DATA_DICTIONARY	CUMULATIVE_USER_STATS	VIEW
LOCAL	DATA_DICTIONARY	CURRENT_SQL_COMMANDS	VIEW
LOCAL	DATA_DICTIONARY	DRIZZLE_PROTOCOL_STATUS	VIEW
LOCAL	DATA_DICTIONARY	FOREIGN_KEYS	VIEW
LOCAL	DATA_DICTIONARY	GLOBAL_STATEMENTS	VIEW
LOCAL	DATA_DICTIONARY	GLOBAL_STATUS	VIEW
LOCAL	DATA_DICTIONARY	GLOBAL_VARIABLES	VIEW
LOCAL	DATA_DICTIONARY	INDEXES	VIEW
LOCAL	DATA_DICTIONARY	INDEX_PARTS	VIEW
LOCAL	DATA_DICTIONARY	INNODB_CMP	VIEW
LOCAL	DATA_DICTIONARY	INNODB_CMPMEM	VIEW
LOCAL	DATA_DICTIONARY	INNODB_CMPMEM_RESET	VIEW
LOCAL	DATA_DICTIONARY	INNODB_CMP_RESET	VIEW
LOCAL	DATA_DICTIONARY	INNODB_INTERNAL_TABLES	VIEW
LOCAL	DATA_DICTIONARY	INNODB_LOCKS	VIEW
LOCAL	DATA_DICTIONARY	INNODB_LOCK_WAITS	VIEW
LOCAL	DATA_DICTIONARY	INNODB_STATUS	VIEW
LOCAL	DATA_DICTIONARY	INNODB_TRX	VIEW
LOCAL	DATA_DICTIONARY	MODULES	VIEW
LOCAL	DATA_DICTIONARY	MYSQL_PROTOCOL_STATUS	VIEW
LOCAL	DATA_DICTIONARY	PLUGINS	VIEW
LOCAL	DATA_DICTIONARY	PROCESSLIST	VIEW
LOCAL	DATA_DICTIONARY	REPLICATION_STREAMS	VIEW
LOCAL	DATA_DICTIONARY	SCHEMAS	VIEW
LOCAL	DATA_DICTIONARY	SCHEMA_SQL_DEFINITION	VIEW
LOCAL	DATA_DICTIONARY	SCOREBOARD_STATISTICS	VIEW
LOCAL	DATA_DICTIONARY	SESSION_STATEMENTS	VIEW
LOCAL	DATA_DICTIONARY	SESSION_STATUS	VIEW
LOCAL	DATA_DICTIONARY	SESSION_VARIABLES	VIEW
LOCAL	DATA_DICTIONARY	SHOW_COLUMNS	VIEW
LOCAL	DATA_DICTIONARY	SHOW_INDEXES	VIEW
LOCAL	DATA_DICTIONARY	SHOW_SCHEMAS	VIEW
LOCAL	DATA_DICTIONARY	SHOW_TABLES	VIEW
LOCAL	DATA_DICTIONARY	SHOW_TABLE_STATUS	VIEW
LOCAL	DATA_DICTIONARY	SHOW_TEMPORARY_TABLES	VIEW
LOCAL	DATA_DICTIONARY	TABLES	VIEW
LOCAL	DATA_DICTIONARY	TABLE_CACHE	VIEW
LOCAL	DATA_DICTIONARY	TABLE_CONSTRAINTS	VIEW
LOCAL	DATA_DICTIONARY	TABLE_DEFINITION_CACHE	VIEW
LOCAL	DATA_DICTIONARY	TABLE_SQL_DEFINITION	VIEW
LOCAL	DATA_DICTIONARY	USER_LOCKS	VIEW
LOCAL	INFORMATION_SCHEMA	CHECK_CONSTRAINTS	VIEW
LOCAL	INFORMATION_SCHEMA	COLUMNS	VIEW
LOCAL	INFORMATION_SCHEMA	COLUMN_DOMAIN_USAGE	VIEW
LOCAL	INFORMATION_SCHEMA	COLUMN_PRIVILEGES	VIEW
LOCAL	INFORMATION_SCHEMA	CONSTRAINT_COLUMN_USAGE	VIEW
LOCAL	INFORMATION_SCHEMA	CONSTRAINT_TABLE_USAGE	VIEW
LOCAL	INFORMATION_SCHEMA	DOMAINS	VIEW
LOCAL	INFORMATION_SCHEMA	DOMAIN_CONSTRAINTS	VIEW
LOCAL	INFORMATION_SCHEMA	KEY_COLUMN_USAGE	VIEW
LOCAL	INFORMATION_SCHEMA	PARAMETERS	VIEW
LOCAL	INFORMATION_SCHEMA	REFERENTIAL_CONSTRAINTS	VIEW
LOCAL	INFORMATION_SCHEMA	ROUTINES	VIEW
LOCAL	INFORMATION_SCHEMA	ROUTINE_COLUMNS	VIEW
LOCAL	INFORMATION_SCHEMA	SCHEMATA	VIEW
LOCAL	INFORMATION_SCHEMA	TABLES	VIEW
LOCAL	INFORMATION_SCHEMA	TABLE_CONSTRAINTS	VIEW
LOCAL	INFORMATION_SCHEMA	TABLE_PRIVILEGES	VIEW
LOCAL	INFORMATION_SCHEMA	VIEWS	VIEW
LOCAL	INFORMATION_SCHEMA	VIEW_COLUMN_USAGE	VIEW
LOCAL	INFORMATION_SCHEMA	VIEW_TABLE_USAGE	VIEW
create schema a;
SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA="a";
TABLE_CATALOG	TABLE_SCHEMA	TABLE_NAME	TABLE_TYPE
use a;
create table a (a int );
create table b (a int );
create table c (a int );
create table d (a int );
create table ds (a int );
create table aa (a int );
show tables;
Tables_in_a
a
aa
b
c
d
ds
SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME="a";
TABLE_CATALOG	TABLE_SCHEMA	TABLE_NAME	TABLE_TYPE
LOCAL	a	a	BASE
SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME like "a%";
TABLE_CATALOG	TABLE_SCHEMA	TABLE_NAME	TABLE_TYPE
LOCAL	a	a	BASE
LOCAL	a	aa	BASE
SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME like "%a";
TABLE_CATALOG	TABLE_SCHEMA	TABLE_NAME	TABLE_TYPE
LOCAL	INFORMATION_SCHEMA	SCHEMATA	VIEW
LOCAL	a	a	BASE
LOCAL	a	aa	BASE
SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME like "%s";
TABLE_CATALOG	TABLE_SCHEMA	TABLE_NAME	TABLE_TYPE
LOCAL	DATA_DICTIONARY	CHARACTER_SETS	VIEW
LOCAL	DATA_DICTIONARY	COLLATIONS	VIEW
LOCAL	DATA_DICTIONARY	COLUMNS	VIEW
LOCAL	DATA_DICTIONARY	CUMULATIVE_SQL_COMMANDS	VIEW
LOCAL	DATA_DICTIONARY	CUMULATIVE_USER_STATS	VIEW
LOCAL	DATA_DICTIONARY	CURRENT_SQL_COMMANDS	VIEW
LOCAL	DATA_DICTIONARY	DRIZZLE_PROTOCOL_STATUS	VIEW
LOCAL	DATA_DICTIONARY	FOREIGN_KEYS	VIEW
LOCAL	DATA_DICTIONARY	GLOBAL_STATEMENTS	VIEW
LOCAL	DATA_DICTIONARY	GLOBAL_STATUS	VIEW
LOCAL	DATA_DICTIONARY	GLOBAL_VARIABLES	VIEW
LOCAL	DATA_DICTIONARY	INDEXES	VIEW
LOCAL	DATA_DICTIONARY	INDEX_PARTS	VIEW
LOCAL	DATA_DICTIONARY	INNODB_INTERNAL_TABLES	VIEW
LOCAL	DATA_DICTIONARY	INNODB_LOCKS	VIEW
LOCAL	DATA_DICTIONARY	INNODB_LOCK_WAITS	VIEW
LOCAL	DATA_DICTIONARY	INNODB_STATUS	VIEW
LOCAL	DATA_DICTIONARY	MODULES	VIEW
LOCAL	DATA_DICTIONARY	MYSQL_PROTOCOL_STATUS	VIEW
LOCAL	DATA_DICTIONARY	PLUGINS	VIEW
LOCAL	DATA_DICTIONARY	REPLICATION_STREAMS	VIEW
LOCAL	DATA_DICTIONARY	SCHEMAS	VIEW
LOCAL	DATA_DICTIONARY	SCOREBOARD_STATISTICS	VIEW
LOCAL	DATA_DICTIONARY	SESSION_STATEMENTS	VIEW
LOCAL	DATA_DICTIONARY	SESSION_STATUS	VIEW
LOCAL	DATA_DICTIONARY	SESSION_VARIABLES	VIEW
LOCAL	DATA_DICTIONARY	SHOW_COLUMNS	VIEW
LOCAL	DATA_DICTIONARY	SHOW_INDEXES	VIEW
LOCAL	DATA_DICTIONARY	SHOW_SCHEMAS	VIEW
LOCAL	DATA_DICTIONARY	SHOW_TABLES	VIEW
LOCAL	DATA_DICTIONARY	SHOW_TABLE_STATUS	VIEW
LOCAL	DATA_DICTIONARY	SHOW_TEMPORARY_TABLES	VIEW
LOCAL	DATA_DICTIONARY	TABLES	VIEW
LOCAL	DATA_DICTIONARY	TABLE_CONSTRAINTS	VIEW
LOCAL	DATA_DICTIONARY	USER_LOCKS	VIEW
LOCAL	INFORMATION_SCHEMA	CHECK_CONSTRAINTS	VIEW
LOCAL	INFORMATION_SCHEMA	COLUMNS	VIEW
LOCAL	INFORMATION_SCHEMA	COLUMN_PRIVILEGES	VIEW
LOCAL	INFORMATION_SCHEMA	DOMAINS	VIEW
LOCAL	INFORMATION_SCHEMA	DOMAIN_CONSTRAINTS	VIEW
LOCAL	INFORMATION_SCHEMA	PARAMETERS	VIEW
LOCAL	INFORMATION_SCHEMA	REFERENTIAL_CONSTRAINTS	VIEW
LOCAL	INFORMATION_SCHEMA	ROUTINES	VIEW
LOCAL	INFORMATION_SCHEMA	ROUTINE_COLUMNS	VIEW
LOCAL	INFORMATION_SCHEMA	TABLES	VIEW
LOCAL	INFORMATION_SCHEMA	TABLE_CONSTRAINTS	VIEW
LOCAL	INFORMATION_SCHEMA	TABLE_PRIVILEGES	VIEW
LOCAL	INFORMATION_SCHEMA	VIEWS	VIEW
LOCAL	a	ds	BASE
SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA="a" ORDER BY TABLE_NAME;
TABLE_CATALOG	TABLE_SCHEMA	TABLE_NAME	TABLE_TYPE
LOCAL	a	a	BASE
LOCAL	a	aa	BASE
LOCAL	a	b	BASE
LOCAL	a	c	BASE
LOCAL	a	d	BASE
LOCAL	a	ds	BASE
drop schema a;
SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA="a";
TABLE_CATALOG	TABLE_SCHEMA	TABLE_NAME	TABLE_TYPE