MySQL Forums :: InnoDB :: Denormalization to allow use UNQIUE index?


Advanced Search

Re: Denormalization to allow use UNQIUE index?
Posted by: Victor Porton ()
Date: November 11, 2016 01:02PM

Here are example table creating statements:

CREATE TABLE `Post` (
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`body` TEXT NOT NULL,
`issue_id` INT UNSIGNED NOT NULL,
PRIMARY KEY (`id`)
);

CREATE TABLE `Comment` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`body` text COLLATE utf8_bin NOT NULL,
`comment_id` int(10) unsigned NOT NULL,
`Comment` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `fk_Comment_1_idx` (`Comment`),
CONSTRAINT `fk_Comment_1` FOREIGN KEY (`Comment`) REFERENCES `Comment` (`id`)
);

--
http://freesoft.portonvictor.org

Options: ReplyQuote


Subject Views Written By Posted
Denormalization to allow use UNQIUE index? 444 Victor Porton 11/11/2016 09:34AM
Re: Denormalization to allow use UNQIUE index? 224 Peter Brawley 11/11/2016 11:49AM
Re: Denormalization to allow use UNQIUE index? 215 Victor Porton 11/11/2016 01:02PM
Re: Denormalization to allow use UNQIUE index? 220 Peter Brawley 11/12/2016 01:25PM
Re: Denormalization to allow use UNQIUE index? 292 Victor Porton 11/12/2016 02:14PM
Re: Denormalization to allow use UNQIUE index? 212 Rick James 11/12/2016 05:38PM
Re: Denormalization to allow use UNQIUE index? 203 Peter Brawley 11/12/2016 06:30PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.