Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. CatTable
- idCat
- CatName
- 2. StoryTable
- idCat
- idStory
- StoryName
- 3. PageTable
- idStory
- idPage
- PageDetail
- ____________
- ALTER TABLE `storytable` ADD FOREIGN KEY ( `idCat` ) REFERENCES `topkute`.`cattable` (
- `idCat`
- ) ON DELETE RESTRICT ON UPDATE RESTRICT ;
- ______________________
- ALTER TABLE `pagetable` ADD FOREIGN KEY ( `idStory` ) REFERENCES `topkute`.`storytable` (
- `idStory`
- ) ON DELETE RESTRICT ON UPDATE RESTRICT ;
Advertisement
Add Comment
Please, Sign In to add comment