【发布时间】:2011-12-15 12:49:58
【问题描述】:
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;
我想知道其实部分:
主键 (sdate,deptID,opID)这里出现问题是因为
【问题讨论】:
-
什么版本的postgresql?到目前为止你尝试了什么,你在哪里卡住了?
标签: mysql postgresql