在网上看了好多例子,总也调试不好 求高手帮帮忙,最好给出调试好的代码。
CREATE TABLE `reply` (
`replyId` int(11) NOT NULL auto_increment,
`topicId` int(11) default NULL,
`userId` int(11) default NULL,
`replyTitle` varchar(200) default NULL,
`replyContent` varchar(250) default NULL,
`screenSign` int(11) default NULL,
`replyTime` varchar(20) default NULL,
`replyImage` varchar(200) default NULL,
PRIMARY KEY (`replyId`),
KEY `FK_Relationship_3` (`topicId`),
KEY `FK_Relationship_5` (`userId`),
CONSTRAINT `FK_Relationship_3` FOREIGN KEY (`topicId`) REFERENCES `topic` (`topicId`),
CONSTRAINT `FK_Relationship_5` FOREIGN KEY (`userId`) REFERENCES `users` (`userId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
文件名最好是加userId 和topicId,replyId加上发表时间的
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)