Skip to content

Instantly share code, notes, and snippets.

@higj
Created January 26, 2012 19:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save higj/1684611 to your computer and use it in GitHub Desktop.
Save higj/1684611 to your computer and use it in GitHub Desktop.
SQL query:
--
-- Constraints for table `blog_comments`
--
ALTER TABLE `blog_comments` ADD CONSTRAINT `blog_comments_ibfk_1` FOREIGN KEY ( `blogid` ) REFERENCES `intva109_phpbook`.`blog` (
`id`
) ON DELETE CASCADE ON UPDATE CASCADE ;
MySQL said: Documentation
#1005 - Can't create table 'phpguide.#sql-674_b2' (errno: 150) (Details...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment