~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
DROP TABLE IF EXISTS t0,t1,t2,t3,t4,t5;
2
select * from information_schema.SCHEMATA where schema_name > 'm';
3
CATALOG_NAME	SCHEMA_NAME	DEFAULT_CHARACTER_SET_NAME	DEFAULT_COLLATION_NAME	SQL_PATH
383.1.16 by Brian Aker
Force client communication into UTF8
4
NULL	mysql	utf8	utf8_general_ci	NULL
5
NULL	test	utf8	utf8_general_ci	NULL
1 by brian
clean slate
6
select schema_name from information_schema.schemata;
7
schema_name
8
information_schema
9
mysql
10
test
11
show databases like 't%';
12
Database (t%)
13
test
14
show databases;
15
Database
16
information_schema
17
mysql
18
test
19
create database mysqltest;
20
create table mysqltest.t1(a int, b VARCHAR(30), KEY string_data (b));
21
create table test.t2(a int);
22
create table t3(a int, KEY a_data (a));
23
create table mysqltest.t4(a int);
24
create table t5 (id int auto_increment primary key);
25
insert into t5 values (10);
26
select table_name from information_schema.TABLES
27
where table_schema = "mysqltest" and table_name like "t%";
28
table_name
29
t1
30
t4
31
select * from information_schema.STATISTICS where TABLE_SCHEMA = "mysqltest";
32
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
201 by Brian Aker
Convert default engine to Innodb
33
NULL	mysqltest	t1	1	mysqltest	string_data	1	b	A	0	NULL	NULL	YES	BTREE		
1 by brian
clean slate
34
show tables like 't%';
35
Tables_in_test (t%)
36
t2
37
t3
38
t5
39
show full columns from t3 like "a%";
40
Field	Type	Collation	Null	Key	Default	Extra	Privileges	Comment
520.4.13 by Monty Taylor
Cleaned up two remaining test cases.
41
a	int	NULL	YES	MUL	NULL		#	
1 by brian
clean slate
42
select * from information_schema.COLUMNS where table_name="t1"
43
and column_name= "a";
44
TABLE_CATALOG	TABLE_SCHEMA	TABLE_NAME	COLUMN_NAME	ORDINAL_POSITION	COLUMN_DEFAULT	IS_NULLABLE	DATA_TYPE	CHARACTER_MAXIMUM_LENGTH	CHARACTER_OCTET_LENGTH	NUMERIC_PRECISION	NUMERIC_SCALE	CHARACTER_SET_NAME	COLLATION_NAME	COLUMN_TYPE	COLUMN_KEY	EXTRA	PRIVILEGES	COLUMN_COMMENT	STORAGE	FORMAT
221 by Brian Aker
First pass of removing length types for ints.
45
NULL	mysqltest	t1	a	1	NULL	YES	int	NULL	NULL	10	0	NULL	NULL	int					Default	Default
1 by brian
clean slate
46
select table_name, column_name, privileges from information_schema.columns 
47
where table_schema = 'mysqltest' and table_name = 't1';
48
table_name	column_name	privileges
49
t1	a	
50
t1	b	
51
show columns from mysqltest.t1;
52
Field	Type	Null	Key	Default	Extra
221 by Brian Aker
First pass of removing length types for ints.
53
a	int	YES		NULL	
1 by brian
clean slate
54
b	varchar(30)	YES	MUL	NULL	
55
drop tables mysqltest.t4, mysqltest.t1, t2, t3, t5;
56
drop database mysqltest;
57
select * from information_schema.CHARACTER_SETS
58
where CHARACTER_SET_NAME like 'latin1%';
59
CHARACTER_SET_NAME	DEFAULT_COLLATE_NAME	DESCRIPTION	MAXLEN
60
select * from information_schema.COLLATIONS
61
where COLLATION_NAME like 'latin1%';
62
COLLATION_NAME	CHARACTER_SET_NAME	ID	IS_DEFAULT	IS_COMPILED	SORTLEN
63
select * from information_schema.COLLATION_CHARACTER_SET_APPLICABILITY
64
where COLLATION_NAME like 'latin1%';
65
COLLATION_NAME	CHARACTER_SET_NAME
66
select * from information_schema.table_names;
67
ERROR 42S02: Unknown table 'table_names' in information_schema
68
select column_type from information_schema.columns
69
where table_schema="information_schema" and table_name="COLUMNS" and
70
(column_name="character_set_name" or column_name="collation_name");
71
column_type
72
varchar(64)
73
varchar(64)
74
select TABLE_ROWS from information_schema.tables where 
75
table_schema="information_schema" and table_name="COLUMNS";
76
TABLE_ROWS
77
NULL
78
select table_type from information_schema.tables
79
where table_schema="mysql" and table_name="user";
80
table_type
81
select table_schema,table_name, column_name from
82
information_schema.columns 
83
where data_type = 'longtext';
84
table_schema	table_name	column_name
85
select table_name, column_name, data_type from information_schema.columns
86
where data_type = 'datetime';
87
table_name	column_name	data_type
88
TABLES	CREATE_TIME	datetime
89
TABLES	UPDATE_TIME	datetime
90
TABLES	CHECK_TIME	datetime
520.4.1 by Monty Taylor
Imported InnoDB plugin with changes.
91
INNODB_TRX	trx_started	datetime
92
INNODB_TRX	trx_wait_started	datetime
1 by brian
clean slate
93
SELECT COUNT(*) FROM INFORMATION_SCHEMA.TABLES A
94
WHERE NOT EXISTS 
95
(SELECT * FROM INFORMATION_SCHEMA.COLUMNS B
96
WHERE A.TABLE_SCHEMA = B.TABLE_SCHEMA
97
AND A.TABLE_NAME = B.TABLE_NAME);
98
COUNT(*)
99
0
100
create table t1
101
( x_bigint BIGINT,
102
x_integer INTEGER,
396 by Brian Aker
Cleanup tiny and small int.
103
x_int int,
1 by brian
clean slate
104
x_decimal DECIMAL(5,3),
105
x_numeric NUMERIC(5,3),
106
x_real REAL,
107
x_float FLOAT,
108
x_double_precision DOUBLE PRECISION );
109
SELECT COLUMN_NAME, CHARACTER_MAXIMUM_LENGTH, CHARACTER_OCTET_LENGTH
110
FROM INFORMATION_SCHEMA.COLUMNS
111
WHERE TABLE_NAME= 't1';
112
COLUMN_NAME	CHARACTER_MAXIMUM_LENGTH	CHARACTER_OCTET_LENGTH
113
x_bigint	NULL	NULL
114
x_integer	NULL	NULL
396 by Brian Aker
Cleanup tiny and small int.
115
x_int	NULL	NULL
1 by brian
clean slate
116
x_decimal	NULL	NULL
117
x_numeric	NULL	NULL
118
x_real	NULL	NULL
119
x_float	NULL	NULL
120
x_double_precision	NULL	NULL
121
drop table t1;
122
SELECT table_schema, count(*) FROM information_schema.TABLES
123
WHERE table_name NOT LIKE 'ndb_%' AND table_name NOT LIKE 'falcon%' GROUP BY TABLE_SCHEMA;
124
table_schema	count(*)
520.4.1 by Monty Taylor
Imported InnoDB plugin with changes.
125
information_schema	23
1 by brian
clean slate
126
show create database information_schema;
127
Database	Create Database
758.2.4 by Andrew Hutchings
Fix tests for modified code
128
information_schema	CREATE DATABASE `information_schema`
1 by brian
clean slate
129
create table t1(f1 LONGBLOB, f2 LONGTEXT);
130
select column_name,data_type,CHARACTER_OCTET_LENGTH,
131
CHARACTER_MAXIMUM_LENGTH
132
from information_schema.columns
133
where table_name='t1';
134
column_name	data_type	CHARACTER_OCTET_LENGTH	CHARACTER_MAXIMUM_LENGTH
221 by Brian Aker
First pass of removing length types for ints.
135
f1	blob	4294967295	4294967295
136
f2	text	4294967295	4294967295
1 by brian
clean slate
137
drop table t1;
396 by Brian Aker
Cleanup tiny and small int.
138
create table t1(f1 int, f2 int, f3 BIGINT, f4 int,
139
f5 BIGINT, f6 int, f7 int);
1 by brian
clean slate
140
select column_name, NUMERIC_PRECISION, NUMERIC_SCALE
141
from information_schema.columns
142
where table_name='t1';
143
column_name	NUMERIC_PRECISION	NUMERIC_SCALE
396 by Brian Aker
Cleanup tiny and small int.
144
f1	10	0
145
f2	10	0
67 by Brian Aker
First pass for removing mediumint (3 byte INT type).
146
f3	19	0
1 by brian
clean slate
147
f4	10	0
148
f5	19	0
396 by Brian Aker
Cleanup tiny and small int.
149
f6	10	0
150
f7	10	0
1 by brian
clean slate
151
drop table t1;
152
create table t1 (a int not null, b int);
153
use information_schema;
154
select column_name, column_default from columns
155
where table_schema='test' and table_name='t1';
156
column_name	column_default
157
a	NULL
158
b	NULL
159
use test;
160
show columns from t1;
161
Field	Type	Null	Key	Default	Extra
221 by Brian Aker
First pass of removing length types for ints.
162
a	int	NO		NULL	
163
b	int	YES		NULL	
1 by brian
clean slate
164
drop table t1;
165
alter database information_schema;
629.2.6 by Monty
Updated test output with new and improved error messages.
166
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near '' at line 1
1 by brian
clean slate
167
drop database information_schema;
168
ERROR 42000: Access denied for user ''@'' to database 'information_schema'
169
drop table information_schema.tables;
170
ERROR 42000: Access denied for user ''@'' to database 'information_schema'
171
alter table information_schema.tables;
172
ERROR 42000: Access denied for user ''@'' to database 'information_schema'
173
use information_schema;
174
create temporary table schemata(f1 char(10));
175
ERROR 42000: Access denied for user ''@'' to database 'information_schema'
176
use test;
177
create table t1(id int);
178
insert into t1(id) values (1);
179
select 1 from (select 1 from test.t1) a;
180
1
181
1
182
use information_schema;
183
select 1 from (select 1 from test.t1) a;
184
1
185
1
186
use test;
187
drop table t1;
188
create temporary table t1(f1 int, index(f1));
189
show columns from t1;
190
Field	Type	Null	Key	Default	Extra
221 by Brian Aker
First pass of removing length types for ints.
191
f1	int	YES	MUL	NULL	
1 by brian
clean slate
192
describe t1;
193
Field	Type	Null	Key	Default	Extra
221 by Brian Aker
First pass of removing length types for ints.
194
f1	int	YES	MUL	NULL	
1 by brian
clean slate
195
show indexes from t1;
196
Table	Non_unique	Key_name	Seq_in_index	Column_name	Collation	Cardinality	Sub_part	Packed	Null	Index_type	Comment	Index_Comment
201 by Brian Aker
Convert default engine to Innodb
197
t1	1	f1	1	f1	A	0	NULL	NULL	YES	BTREE		
1 by brian
clean slate
198
drop table t1;
233 by Brian Aker
Fix to remove binary/nchar
199
create table t1(f1 varbinary(32), f2 varbinary(64));
1 by brian
clean slate
200
select character_maximum_length, character_octet_length
201
from information_schema.columns where table_name='t1';
202
character_maximum_length	character_octet_length
203
32	32
204
64	64
205
drop table t1;
206
select column_type, group_concat(table_schema, '.', table_name), count(*) as num
207
from information_schema.columns where
208
table_schema='information_schema' and
209
(column_type = 'varchar(7)' or column_type = 'varchar(20)'
210
 or column_type = 'varchar(27)')
211
group by column_type order by num;
212
column_type	group_concat(table_schema, '.', table_name)	num
177.4.6 by Mark Atwood
updated test result for information_schema because of changes in SHOW PLUGINS
213
varchar(20)	information_schema.PLUGINS	1
1 by brian
clean slate
214
varchar(27)	information_schema.COLUMNS	1
377.1.4 by Brian Aker
Big, fat, UTF-8 patch. This fixes some of the oddities around only one
215
create table t1(f1 char(1) not null, f2 char(9) not null);
1 by brian
clean slate
216
select CHARACTER_MAXIMUM_LENGTH, CHARACTER_OCTET_LENGTH from
217
information_schema.columns where table_schema='test' and table_name = 't1';
218
CHARACTER_MAXIMUM_LENGTH	CHARACTER_OCTET_LENGTH
383.1.16 by Brian Aker
Force client communication into UTF8
219
1	4
220
9	36
1 by brian
clean slate
221
drop table t1;
222
set @a:= '.';
223
create table t1(f1 char(5));
224
create table t2(f1 char(5));
225
select concat(@a, table_name), @a, table_name
226
from information_schema.tables where table_schema = 'test';
227
concat(@a, table_name)	@a	table_name
228
.t1	.	t1
229
.t2	.	t2
230
drop table t1,t2;
231
SELECT t.table_name, c1.column_name
232
FROM information_schema.tables t
233
INNER JOIN
234
information_schema.columns c1
235
ON t.table_schema = c1.table_schema AND
236
t.table_name = c1.table_name
237
WHERE t.table_schema = 'information_schema' AND
238
c1.ordinal_position =
239
( SELECT COALESCE(MIN(c2.ordinal_position),1)
240
FROM information_schema.columns c2
241
WHERE c2.table_schema = t.table_schema AND
242
c2.table_name = t.table_name AND
243
c2.column_name LIKE '%SCHEMA%'
244
        )
245
AND t.table_name NOT LIKE 'falcon%';
246
table_name	column_name
247
CHARACTER_SETS	CHARACTER_SET_NAME
248
COLLATIONS	COLLATION_NAME
249
COLLATION_CHARACTER_SET_APPLICABILITY	COLLATION_NAME
250
COLUMNS	TABLE_SCHEMA
251
GLOBAL_STATUS	VARIABLE_NAME
252
GLOBAL_VARIABLES	VARIABLE_NAME
253
KEY_COLUMN_USAGE	CONSTRAINT_SCHEMA
254
PLUGINS	PLUGIN_NAME
255
PROCESSLIST	ID
256
REFERENTIAL_CONSTRAINTS	CONSTRAINT_SCHEMA
257
SCHEMATA	SCHEMA_NAME
258
SESSION_STATUS	VARIABLE_NAME
259
SESSION_VARIABLES	VARIABLE_NAME
260
STATISTICS	TABLE_SCHEMA
261
TABLES	TABLE_SCHEMA
262
TABLE_CONSTRAINTS	CONSTRAINT_SCHEMA
873.2.25 by Monty Taylor
Updated information_schema test results.
263
INNODB_CMP	page_size
520.4.1 by Monty Taylor
Imported InnoDB plugin with changes.
264
INNODB_CMP_RESET	page_size
873.2.25 by Monty Taylor
Updated information_schema test results.
265
INNODB_CMPMEM	page_size
520.4.1 by Monty Taylor
Imported InnoDB plugin with changes.
266
INNODB_CMPMEM_RESET	page_size
267
INNODB_LOCK_WAITS	requesting_trx_id
268
INNODB_LOCKS	lock_id
873.2.25 by Monty Taylor
Updated information_schema test results.
269
INNODB_TRX	trx_id
1 by brian
clean slate
270
SELECT t.table_name, c1.column_name
271
FROM information_schema.tables t
272
INNER JOIN
273
information_schema.columns c1
274
ON t.table_schema = c1.table_schema AND
275
t.table_name = c1.table_name
276
WHERE t.table_schema = 'information_schema' AND
277
c1.ordinal_position =
278
( SELECT COALESCE(MIN(c2.ordinal_position),1)
279
FROM information_schema.columns c2
280
WHERE c2.table_schema = 'information_schema' AND
281
c2.table_name = t.table_name AND
282
c2.column_name LIKE '%SCHEMA%'
283
        )
284
AND t.table_name NOT LIKE 'falcon%';
285
table_name	column_name
286
CHARACTER_SETS	CHARACTER_SET_NAME
287
COLLATIONS	COLLATION_NAME
288
COLLATION_CHARACTER_SET_APPLICABILITY	COLLATION_NAME
289
COLUMNS	TABLE_SCHEMA
290
GLOBAL_STATUS	VARIABLE_NAME
291
GLOBAL_VARIABLES	VARIABLE_NAME
292
KEY_COLUMN_USAGE	CONSTRAINT_SCHEMA
293
PLUGINS	PLUGIN_NAME
294
PROCESSLIST	ID
295
REFERENTIAL_CONSTRAINTS	CONSTRAINT_SCHEMA
296
SCHEMATA	SCHEMA_NAME
297
SESSION_STATUS	VARIABLE_NAME
298
SESSION_VARIABLES	VARIABLE_NAME
299
STATISTICS	TABLE_SCHEMA
300
TABLES	TABLE_SCHEMA
301
TABLE_CONSTRAINTS	CONSTRAINT_SCHEMA
873.2.25 by Monty Taylor
Updated information_schema test results.
302
INNODB_CMP	page_size
520.4.1 by Monty Taylor
Imported InnoDB plugin with changes.
303
INNODB_CMP_RESET	page_size
873.2.25 by Monty Taylor
Updated information_schema test results.
304
INNODB_CMPMEM	page_size
520.4.1 by Monty Taylor
Imported InnoDB plugin with changes.
305
INNODB_CMPMEM_RESET	page_size
306
INNODB_LOCK_WAITS	requesting_trx_id
307
INNODB_LOCKS	lock_id
873.2.25 by Monty Taylor
Updated information_schema test results.
308
INNODB_TRX	trx_id
1 by brian
clean slate
309
SELECT MAX(table_name) FROM information_schema.tables;
310
MAX(table_name)
82 by Brian Aker
Clean up install, we no longer have system tables.
311
TABLE_CONSTRAINTS
1 by brian
clean slate
312
SELECT table_name from information_schema.tables
313
WHERE table_name=(SELECT MAX(table_name)
314
FROM information_schema.tables);
315
table_name
82 by Brian Aker
Clean up install, we no longer have system tables.
316
TABLE_CONSTRAINTS
223 by Brian Aker
Cleanup int() work.
317
create table t1 (f1 int);
318
create table t2 (f1 int, f2 int);
1 by brian
clean slate
319
select table_name from information_schema.tables
320
where table_schema = 'test' and table_name not in
321
(select table_name from information_schema.columns
322
where table_schema = 'test' and column_name = 'f3');
323
table_name
324
t1
325
t2
326
drop table t1,t2;
327
select 1 as f1 from information_schema.tables  where "CHARACTER_SETS"=
328
(select cast(table_name as char)  from information_schema.tables
329
order by table_name limit 1) limit 1;
330
f1
331
1
332
select t.table_name, group_concat(t.table_schema, '.', t.table_name),
333
count(*) as num1
334
from information_schema.tables t
335
inner join information_schema.columns c1
336
on t.table_schema = c1.table_schema AND t.table_name = c1.table_name
337
where t.table_schema = 'information_schema' AND
338
t.table_name not like 'falcon%' AND
339
c1.ordinal_position =
340
(select isnull(c2.column_type) -
341
isnull(group_concat(c2.table_schema, '.', c2.table_name)) +
342
count(*) as num
343
from information_schema.columns c2 where
344
c2.table_schema='information_schema' and
345
(c2.column_type = 'varchar(7)' or c2.column_type = 'varchar(20)')
346
group by c2.column_type order by num limit 1)
347
group by t.table_name order by num1, t.table_name;
348
table_name	group_concat(t.table_schema, '.', t.table_name)	num1
349
CHARACTER_SETS	information_schema.CHARACTER_SETS	1
350
COLLATIONS	information_schema.COLLATIONS	1
177.4.6 by Mark Atwood
updated test result for information_schema because of changes in SHOW PLUGINS
351
COLLATION_CHARACTER_SET_APPLICABILITY	information_schema.COLLATION_CHARACTER_SET_APPLICABILITY	1
1 by brian
clean slate
352
COLUMNS	information_schema.COLUMNS	1
177.4.6 by Mark Atwood
updated test result for information_schema because of changes in SHOW PLUGINS
353
GLOBAL_STATUS	information_schema.GLOBAL_STATUS	1
354
GLOBAL_VARIABLES	information_schema.GLOBAL_VARIABLES	1
520.4.1 by Monty Taylor
Imported InnoDB plugin with changes.
355
INNODB_CMP	information_schema.INNODB_CMP	1
356
INNODB_CMPMEM	information_schema.INNODB_CMPMEM	1
357
INNODB_CMPMEM_RESET	information_schema.INNODB_CMPMEM_RESET	1
358
INNODB_CMP_RESET	information_schema.INNODB_CMP_RESET	1
359
INNODB_LOCKS	information_schema.INNODB_LOCKS	1
360
INNODB_LOCK_WAITS	information_schema.INNODB_LOCK_WAITS	1
361
INNODB_TRX	information_schema.INNODB_TRX	1
1 by brian
clean slate
362
KEY_COLUMN_USAGE	information_schema.KEY_COLUMN_USAGE	1
363
PLUGINS	information_schema.PLUGINS	1
364
PROCESSLIST	information_schema.PROCESSLIST	1
365
REFERENTIAL_CONSTRAINTS	information_schema.REFERENTIAL_CONSTRAINTS	1
366
SCHEMATA	information_schema.SCHEMATA	1
177.4.6 by Mark Atwood
updated test result for information_schema because of changes in SHOW PLUGINS
367
SESSION_STATUS	information_schema.SESSION_STATUS	1
368
SESSION_VARIABLES	information_schema.SESSION_VARIABLES	1
1 by brian
clean slate
369
STATISTICS	information_schema.STATISTICS	1
370
TABLES	information_schema.TABLES	1
371
TABLE_CONSTRAINTS	information_schema.TABLE_CONSTRAINTS	1
372
alter database;
629.2.6 by Monty
Updated test output with new and improved error messages.
373
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near '' at line 1
1 by brian
clean slate
374
alter database test;
629.2.6 by Monty
Updated test output with new and improved error messages.
375
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near '' at line 1
1 by brian
clean slate
376
create table t1 (
377
f1 varchar(50),
378
f2 varchar(50) not null,
379
f3 varchar(50) default '',
380
f4 varchar(50) default NULL,
381
f5 bigint not null,
382
f6 bigint not null default 10,
383
f7 datetime not null,
384
f8 datetime default '2006-01-01'
385
);
386
select column_default from information_schema.columns where table_name= 't1';
387
column_default
388
NULL
389
NULL
873.2.35 by Monty Taylor
Update tests based on how Toru's latest patch changes create table statements.
390
391
NULL
392
NULL
393
10
394
NULL
395
2006-01-01 00:00:00
1 by brian
clean slate
396
show columns from t1;
397
Field	Type	Null	Key	Default	Extra
398
f1	varchar(50)	YES		NULL	
399
f2	varchar(50)	NO		NULL	
873.2.35 by Monty Taylor
Update tests based on how Toru's latest patch changes create table statements.
400
f3	varchar(50)	YES			
1 by brian
clean slate
401
f4	varchar(50)	YES		NULL	
221 by Brian Aker
First pass of removing length types for ints.
402
f5	bigint	NO		NULL	
873.2.35 by Monty Taylor
Update tests based on how Toru's latest patch changes create table statements.
403
f6	bigint	NO		10	
1 by brian
clean slate
404
f7	datetime	NO		NULL	
873.2.35 by Monty Taylor
Update tests based on how Toru's latest patch changes create table statements.
405
f8	datetime	YES		2006-01-01 00:00:00	
1 by brian
clean slate
406
drop table t1;
407
show fields from information_schema.table_names;
408
ERROR 42S02: Unknown table 'table_names' in information_schema
409
show keys from information_schema.table_names;
410
ERROR 42S02: Unknown table 'table_names' in information_schema
411
SET max_heap_table_size = DEFAULT;
412
USE test;
413
End of 5.0 tests.
414
SELECT SCHEMA_NAME FROM INFORMATION_SCHEMA.SCHEMATA
415
WHERE SCHEMA_NAME ='information_schema';
416
SCHEMA_NAME
417
information_schema
418
SELECT TABLE_COLLATION FROM INFORMATION_SCHEMA.TABLES
419
WHERE TABLE_SCHEMA='mysql' and TABLE_NAME= 'db';
420
TABLE_COLLATION
421
select * from information_schema.columns where table_schema = NULL;
422
TABLE_CATALOG	TABLE_SCHEMA	TABLE_NAME	COLUMN_NAME	ORDINAL_POSITION	COLUMN_DEFAULT	IS_NULLABLE	DATA_TYPE	CHARACTER_MAXIMUM_LENGTH	CHARACTER_OCTET_LENGTH	NUMERIC_PRECISION	NUMERIC_SCALE	CHARACTER_SET_NAME	COLLATION_NAME	COLUMN_TYPE	COLUMN_KEY	EXTRA	PRIVILEGES	COLUMN_COMMENT	STORAGE	FORMAT
423
select * from `information_schema`.`COLUMNS` where `TABLE_NAME` = NULL;
424
TABLE_CATALOG	TABLE_SCHEMA	TABLE_NAME	COLUMN_NAME	ORDINAL_POSITION	COLUMN_DEFAULT	IS_NULLABLE	DATA_TYPE	CHARACTER_MAXIMUM_LENGTH	CHARACTER_OCTET_LENGTH	NUMERIC_PRECISION	NUMERIC_SCALE	CHARACTER_SET_NAME	COLLATION_NAME	COLUMN_TYPE	COLUMN_KEY	EXTRA	PRIVILEGES	COLUMN_COMMENT	STORAGE	FORMAT
425
select * from `information_schema`.`KEY_COLUMN_USAGE` where `TABLE_SCHEMA` = NULL;
426
CONSTRAINT_CATALOG	CONSTRAINT_SCHEMA	CONSTRAINT_NAME	TABLE_CATALOG	TABLE_SCHEMA	TABLE_NAME	COLUMN_NAME	ORDINAL_POSITION	POSITION_IN_UNIQUE_CONSTRAINT	REFERENCED_TABLE_SCHEMA	REFERENCED_TABLE_NAME	REFERENCED_COLUMN_NAME
427
select * from `information_schema`.`KEY_COLUMN_USAGE` where `TABLE_NAME` = NULL;
428
CONSTRAINT_CATALOG	CONSTRAINT_SCHEMA	CONSTRAINT_NAME	TABLE_CATALOG	TABLE_SCHEMA	TABLE_NAME	COLUMN_NAME	ORDINAL_POSITION	POSITION_IN_UNIQUE_CONSTRAINT	REFERENCED_TABLE_SCHEMA	REFERENCED_TABLE_NAME	REFERENCED_COLUMN_NAME
429
select * from `information_schema`.`REFERENTIAL_CONSTRAINTS` where `CONSTRAINT_SCHEMA` = NULL;
430
CONSTRAINT_CATALOG	CONSTRAINT_SCHEMA	CONSTRAINT_NAME	UNIQUE_CONSTRAINT_CATALOG	UNIQUE_CONSTRAINT_SCHEMA	UNIQUE_CONSTRAINT_NAME	MATCH_OPTION	UPDATE_RULE	DELETE_RULE	TABLE_NAME	REFERENCED_TABLE_NAME
431
select * from `information_schema`.`REFERENTIAL_CONSTRAINTS` where `TABLE_NAME` = NULL;
432
CONSTRAINT_CATALOG	CONSTRAINT_SCHEMA	CONSTRAINT_NAME	UNIQUE_CONSTRAINT_CATALOG	UNIQUE_CONSTRAINT_SCHEMA	UNIQUE_CONSTRAINT_NAME	MATCH_OPTION	UPDATE_RULE	DELETE_RULE	TABLE_NAME	REFERENCED_TABLE_NAME
433
select * from information_schema.schemata where schema_name = NULL;
434
CATALOG_NAME	SCHEMA_NAME	DEFAULT_CHARACTER_SET_NAME	DEFAULT_COLLATION_NAME	SQL_PATH
435
select * from `information_schema`.`STATISTICS` where `TABLE_SCHEMA` = NULL;
436
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
437
select * from `information_schema`.`STATISTICS` where `TABLE_NAME` = NULL;
438
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
439
select * from information_schema.tables where table_schema = NULL;
440
TABLE_CATALOG	TABLE_SCHEMA	TABLE_NAME	TABLE_TYPE	ENGINE	VERSION	ROW_FORMAT	TABLE_ROWS	AVG_ROW_LENGTH	DATA_LENGTH	MAX_DATA_LENGTH	INDEX_LENGTH	DATA_FREE	AUTO_INCREMENT	CREATE_TIME	UPDATE_TIME	CHECK_TIME	TABLE_COLLATION	CHECKSUM	CREATE_OPTIONS	TABLE_COMMENT
441
select * from information_schema.tables where table_catalog = NULL;
442
TABLE_CATALOG	TABLE_SCHEMA	TABLE_NAME	TABLE_TYPE	ENGINE	VERSION	ROW_FORMAT	TABLE_ROWS	AVG_ROW_LENGTH	DATA_LENGTH	MAX_DATA_LENGTH	INDEX_LENGTH	DATA_FREE	AUTO_INCREMENT	CREATE_TIME	UPDATE_TIME	CHECK_TIME	TABLE_COLLATION	CHECKSUM	CREATE_OPTIONS	TABLE_COMMENT
443
select * from information_schema.tables where table_name = NULL;
444
TABLE_CATALOG	TABLE_SCHEMA	TABLE_NAME	TABLE_TYPE	ENGINE	VERSION	ROW_FORMAT	TABLE_ROWS	AVG_ROW_LENGTH	DATA_LENGTH	MAX_DATA_LENGTH	INDEX_LENGTH	DATA_FREE	AUTO_INCREMENT	CREATE_TIME	UPDATE_TIME	CHECK_TIME	TABLE_COLLATION	CHECKSUM	CREATE_OPTIONS	TABLE_COMMENT
445
select * from `information_schema`.`TABLE_CONSTRAINTS` where `TABLE_SCHEMA` = NULL;
446
CONSTRAINT_CATALOG	CONSTRAINT_SCHEMA	CONSTRAINT_NAME	TABLE_SCHEMA	TABLE_NAME	CONSTRAINT_TYPE
447
select * from `information_schema`.`TABLE_CONSTRAINTS` where `TABLE_NAME` = NULL;
448
CONSTRAINT_CATALOG	CONSTRAINT_SCHEMA	CONSTRAINT_NAME	TABLE_SCHEMA	TABLE_NAME	CONSTRAINT_TYPE