我正在尝试为伪数组变量创建一个表。看起来像是
CREATE TABLE IF NOT EXISTS `MyArray`.`ArrayTable` (
`ID` INT UNSIGNED NOT NULL COMMENT 'Hash value of SessionID + ArrayName' ,
`SessionID` INT UNSIGNED NOT NULL ,
`ArrayName` CHAR(26) NOT NULL
COMMENT '32 digit char - 6 digit longest process id (assumtion)' ,
`Index` INT UNSIGNED NOT NULL ,
`Value` TEXT NOT NULL ,
PRIMARY KEY (`ID`, `SessionID`) )
ENGINE = MyISAM;
该表尚未正常化,“希望这会让它更容易理解:”
为了避免客户端之间的冲突,客户端会话之间应该有区别。出于这个原因,我认为需要知道当前的会话/进程ID(就像“SHOW PROCESSLIST”),但真的需要知道IN WHICH进程的查询是什么?