1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
use data_dictionary;
show create table PROCESSLIST ;
Table Create Table
PROCESSLIST CREATE TABLE `PROCESSLIST` (
`ID` BIGINT NOT NULL,
`USERNAME` VARCHAR(16) NOT NULL,
`HOST` VARCHAR(1025) NOT NULL,
`DB` VARCHAR(256) DEFAULT NULL,
`COMMAND` VARCHAR(16) NOT NULL,
`TIME` BIGINT UNSIGNED NOT NULL,
`STATE` VARCHAR(256) DEFAULT NULL,
`INFO` VARCHAR(100) DEFAULT NULL,
`HAS_GLOBAL_LOCK` BOOLEAN NOT NULL
) ENGINE=FunctionEngine COLLATE = utf8_general_ci REPLICATE = FALSE DEFINER 'SYSTEM'
SELECT ASSERT(COUNT(ID)) FROM processlist;
ASSERT(COUNT(ID))
1
SELECT ASSERT(COUNT(ID)) FROM processlist ORDER BY ID;
ASSERT(COUNT(ID))
1
SELECT ASSERT(ID) FROM processlist;
SELECT ID FROM processlist ORDER BY ID;
SELECT a.ID FROM processlist as a CROSS JOIN processlist as b ORDER BY ID;
SELECT a.ID FROM processlist as a CROSS JOIN data_dictionary.processlist as b;
|