Microsoft
Software
Hardware
Network
Question : MySQL Foreign Key Issue
Hello, I am trying to create a database in which I specify some foreign keys in some of the tables.
I'm currently receiving errors though.
Here is an example with 2 of my tables:
CREATE TABLE `gamedb`.`games` (
`game_Key` int(10) unsigned NOT NULL auto_increment,
`game_title` varchar(45) NOT NULL,
`game_desc` varchar(250) NOT NULL,
`timeslot` datetime default NULL,
`game_type` int(10) default NULL,
PRIMARY KEY USING BTREE (`game_Key`)
) ENGINE=InnoDB AUTO_INCREMENT=316 DEFAULT CHARSET=latin1;
CREATE TABLE `gamedb`.`teams` (
`team_Key` int(10) unsigned NOT NULL auto_increment,
`team_name` varchar(45) NOT NULL,
`team_logo` varchar(45) NOT NULL,
`password` varchar(45) NOT NULL,
`game_Key` int(10) default NULL,
FOREIGN KEY (`game_Key`) REFERENCES games(`game_Key`),
PRIMARY KEY USING BTREE (`team_Key`)
) ENGINE=InnoDB AUTO_INCREMENT=591 DEFAULT CHARSET=latin1;
I receive the following error message when i try to create the teams table in my MySQL query browser
Can't create table '.\gamezone\teams.frm' (errno: 150)
Do you possibly see what I am doing wrong to cause error?
Thanks!
Answer : MySQL Foreign Key Issue
Is it not rstdossier.delete?
Random Solutions
Searching inside PHP files
ID File Creation in Lotus notes
Remove Webroot Spy Sweeper 3.1
PIX 515 to ASA 5505 VPN tunnel problems...
VMware, vSphere Virtual Machine and Disk Errors "invalid disk type 7" and "cannot detect guest operating system type"
Design issue - not enough room on screen.Subforms/Pop ups/Tabs
mysql stored proc parameter
How to map external ip to internal subnet on a Cisco ASA
Ruby script failing: (NoMethodError)
Will an AGP Video Card work in a PCI Express Slot?