1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
SHOW CREATE TABLE INFORMATION_SCHEMA.INNODB_LOCKS;
Table Create Table
INNODB_LOCKS CREATE TEMPORARY TABLE `INNODB_LOCKS` (
`lock_id` varchar(81) NOT NULL,
`lock_trx_id` bigint(21) unsigned NOT NULL,
`lock_mode` enum('S','S,GAP','X','X,GAP','IS','IS,GAP','IX','IX,GAP','AUTO_INC') NOT NULL,
`lock_type` enum('RECORD','TABLE') NOT NULL,
`lock_table` varchar(1024) NOT NULL,
`lock_index` varchar(1024),
`lock_space` int(11) unsigned,
`lock_page` int(11) unsigned,
`lock_rec` int(11) unsigned,
`lock_data` varchar(8192)
) ENGINE=MEMORY DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci
CREATE TEMPORARY TABLE t1 LIKE INFORMATION_SCHEMA.INNODB_LOCKS;
DROP TEMPORARY TABLE t1;
CREATE TEMPORARY TABLE t1 AS SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCKS LIMIT 0;
DROP TEMPORARY TABLE t1;
|