244
244
INNODB_LOCK_WAITS requesting_trx_id
245
245
INNODB_TRX trx_id
246
246
OLD_COLUMNS TABLE_SCHEMA
247
OLD_GLOBAL_STATUS VARIABLE_NAME
248
OLD_GLOBAL_VARIABLES VARIABLE_NAME
249
247
OLD_KEY_COLUMN_USAGE CONSTRAINT_SCHEMA
250
248
OLD_REFERENTIAL_CONSTRAINTS CONSTRAINT_SCHEMA
251
OLD_SESSION_VARIABLES VARIABLE_NAME
252
249
OLD_STATISTICS TABLE_SCHEMA
253
250
OLD_TABLE_CONSTRAINTS CONSTRAINT_SCHEMA
254
OPEN_SESSION_STATUS VARIABLE_NAME
255
251
SELECT t.table_name, c1.column_name
256
252
FROM data_dictionary.tables t
277
273
INNODB_LOCK_WAITS requesting_trx_id
278
274
INNODB_TRX trx_id
279
275
OLD_COLUMNS TABLE_SCHEMA
280
OLD_GLOBAL_STATUS VARIABLE_NAME
281
OLD_GLOBAL_VARIABLES VARIABLE_NAME
282
276
OLD_KEY_COLUMN_USAGE CONSTRAINT_SCHEMA
283
277
OLD_REFERENTIAL_CONSTRAINTS CONSTRAINT_SCHEMA
284
OLD_SESSION_VARIABLES VARIABLE_NAME
285
278
OLD_STATISTICS TABLE_SCHEMA
286
279
OLD_TABLE_CONSTRAINTS CONSTRAINT_SCHEMA
287
OPEN_SESSION_STATUS VARIABLE_NAME
288
280
SELECT MAX(table_name) FROM data_dictionary.tables;
282
OLD_TABLE_CONSTRAINTS
291
283
SELECT table_name from data_dictionary.tables
292
284
WHERE table_name=(SELECT MAX(table_name)
293
285
FROM data_dictionary.tables)
294
286
ORDER BY table_name;
288
OLD_TABLE_CONSTRAINTS
297
289
create table t1 (f1 int);
298
290
create table t2 (f1 int, f2 int);
299
291
select table_name from data_dictionary.tables
376
368
WHERE TABLE_SCHEMA='mysql' and TABLE_NAME= 'db';
378
370
select * from data_dictionary.columns where table_schema = NULL;
379
TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE COLLATION_NAME COLUMN_COMMENT
371
TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE COLLATION_NAME COLUMN_KEY EXTRA COLUMN_COMMENT
380
372
select * from `data_dictionary`.`columns` where `TABLE_NAME` = NULL;
381
TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE COLLATION_NAME COLUMN_COMMENT
373
TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE COLLATION_NAME COLUMN_KEY EXTRA COLUMN_COMMENT
382
374
select * from `information_schema`.`OLD_KEY_COLUMN_USAGE` where `TABLE_SCHEMA` = NULL;
383
375
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
384
376
select * from `information_schema`.`OLD_KEY_COLUMN_USAGE` where `TABLE_NAME` = NULL;
523
515
OLD_COLUMNS IS_NULLABLE
524
516
OLD_COLUMNS DATA_TYPE
525
517
OLD_COLUMNS CHARACTER_MAXIMUM_LENGTH
526
OLD_GLOBAL_STATUS VARIABLE_VALUE
527
OLD_GLOBAL_STATUS VARIABLE_NAME
528
OLD_GLOBAL_VARIABLES VARIABLE_NAME
529
OLD_GLOBAL_VARIABLES VARIABLE_VALUE
518
OLD_KEY_COLUMN_USAGE ORDINAL_POSITION
519
OLD_KEY_COLUMN_USAGE POSITION_IN_UNIQUE_CONSTRAINT
520
OLD_KEY_COLUMN_USAGE REFERENCED_TABLE_SCHEMA
521
OLD_KEY_COLUMN_USAGE REFERENCED_TABLE_NAME
530
522
OLD_KEY_COLUMN_USAGE REFERENCED_COLUMN_NAME
531
OLD_KEY_COLUMN_USAGE REFERENCED_TABLE_NAME
532
OLD_KEY_COLUMN_USAGE REFERENCED_TABLE_SCHEMA
533
OLD_KEY_COLUMN_USAGE POSITION_IN_UNIQUE_CONSTRAINT
534
OLD_KEY_COLUMN_USAGE ORDINAL_POSITION
535
523
OLD_KEY_COLUMN_USAGE COLUMN_NAME
536
524
OLD_KEY_COLUMN_USAGE TABLE_NAME
537
525
OLD_KEY_COLUMN_USAGE CONSTRAINT_CATALOG
550
538
OLD_REFERENTIAL_CONSTRAINTS CONSTRAINT_NAME
551
539
OLD_REFERENTIAL_CONSTRAINTS CONSTRAINT_SCHEMA
552
540
OLD_REFERENTIAL_CONSTRAINTS CONSTRAINT_CATALOG
553
OLD_SESSION_VARIABLES VARIABLE_VALUE
554
OLD_SESSION_VARIABLES VARIABLE_NAME
541
OLD_STATISTICS COLUMN_NAME
542
OLD_STATISTICS COLLATION
543
OLD_STATISTICS CARDINALITY
544
OLD_STATISTICS SUB_PART
545
OLD_STATISTICS SEQ_IN_INDEX
546
OLD_STATISTICS INDEX_NAME
547
OLD_STATISTICS INDEX_SCHEMA
548
OLD_STATISTICS NON_UNIQUE
549
OLD_STATISTICS TABLE_NAME
550
OLD_STATISTICS TABLE_SCHEMA
555
551
OLD_STATISTICS TABLE_CATALOG
556
OLD_STATISTICS TABLE_SCHEMA
557
OLD_STATISTICS TABLE_NAME
558
OLD_STATISTICS NON_UNIQUE
559
OLD_STATISTICS INDEX_SCHEMA
560
OLD_STATISTICS INDEX_NAME
561
OLD_STATISTICS SEQ_IN_INDEX
552
OLD_STATISTICS PACKED
553
OLD_STATISTICS NULLABLE
554
OLD_STATISTICS INDEX_TYPE
555
OLD_STATISTICS COMMENT
562
556
OLD_STATISTICS INDEX_COMMENT
563
OLD_STATISTICS COMMENT
564
OLD_STATISTICS INDEX_TYPE
565
OLD_STATISTICS NULLABLE
566
OLD_STATISTICS PACKED
567
OLD_STATISTICS SUB_PART
568
OLD_STATISTICS CARDINALITY
569
OLD_STATISTICS COLLATION
570
OLD_STATISTICS COLUMN_NAME
571
OLD_TABLE_CONSTRAINTS CONSTRAINT_TYPE
572
557
OLD_TABLE_CONSTRAINTS TABLE_NAME
573
558
OLD_TABLE_CONSTRAINTS TABLE_SCHEMA
574
559
OLD_TABLE_CONSTRAINTS CONSTRAINT_NAME
575
560
OLD_TABLE_CONSTRAINTS CONSTRAINT_SCHEMA
576
561
OLD_TABLE_CONSTRAINTS CONSTRAINT_CATALOG
577
OPEN_SESSION_STATUS VARIABLE_NAME
578
OPEN_SESSION_STATUS VARIABLE_VALUE
562
OLD_TABLE_CONSTRAINTS CONSTRAINT_TYPE
580
564
FROM information_schema.old_key_column_usage;
581
565
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
692
FROM information_schema.old_global_status
693
ORDER BY variable_name;
694
VARIABLE_NAME VARIABLE_VALUE
630
FROM data_dictionary.session_variables
631
ORDER BY variable_name;
632
VARIABLE_NAME VARIABLE_VALUE
787
FROM data_dictionary.global_status
788
ORDER BY variable_name;
789
VARIABLE_NAME VARIABLE_VALUE
846
FROM data_dictionary.global_variables
847
ORDER BY variable_name;
848
VARIABLE_NAME VARIABLE_VALUE