CREATE TABLE IF NOT EXISTS `p_reqstats` (
`sdate` int(10) unsigned NOT NULL,
`deptID` int(10) unsigned NOT NULL,
`opID` int(10) unsigned NOT NULL,
`requests` int(10) NOT NULL,
`taken` smallint(5) unsigned NOT NULL,
`declined` smallint(5) unsigned NOT NULL,
`message` smallint(5) unsigned NOT NULL,
`initiated` smallint(5) unsigned NOT NULL,
`initiated_taken` smallint(5) unsigned NOT NULL,
`rateit` smallint(5) unsigned NOT NULL,
`ratings` smallint(5) unsigned NOT NULL,
PRIMARY KEY (`sdate`,`deptID`,`opID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
I wonder in fact part :
PRIMARY KEY (sdate,deptID,opID)Here the problem occurs because the