
Untitled
By: a guest on
Apr 18th, 2012 | syntax:
PHP | size: 0.48 KB | hits: 20 | expires: Never
CREATE TABLE IF NOT EXISTS `comments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`comment` text NOT NULL,
`club_id` int(9) NOT NULL,
`comment_date` date NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `club_id` (`club_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `comments`
--
ALTER TABLE `comments`
ADD CONSTRAINT `comments_ibfk_1` FOREIGN KEY (`club_id`) REFERENCES `clubs` (`id`);