• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

pomocy z baza danych.

Karol94

New Member
Joined
Nov 6, 2013
Messages
1
Reaction score
0
przy wgrywaniu bazy danych wyskakuje tai komunikat

SQL:
zapytanie SQL:

CREATE TABLE  `guild_invites` (

 `player_id` INT NOT NULL DEFAULT 0,
 `guild_id` INT NOT NULL DEFAULT 0,
UNIQUE (
`player_id` ,
`guild_id`
),
FOREIGN KEY (  `player_id` ) REFERENCES  `players` (  `id` ) ON DELETE CASCADE ,
FOREIGN KEY (  `guild_id` ) REFERENCES  `guilds` (  `id` ) ON DELETE CASCADE
) ENGINE = INNODB;

MySQL zwrócił komunikat: Dokumentacja

#1005 - Can't create table '.\4\guild_invites.frm' (errno: 150)
 
Code:
CREATE TABLE `guild_invites`
(
    `player_id` INT NOT NULL DEFAULT 0,
    `guild_id` INT NOT NULL DEFAULT 0,
    UNIQUE (`player_id`, `guild_id`),
    FOREIGN KEY (`player_id`) REFERENCES `players`(`id`) ON DELETE CASCADE,
    FOREIGN KEY (`guild_id`) REFERENCES `guilds`(`id`) ON DELETE CASCADE
) ENGINE = InnoDB;



Zrób takie zapytanie.
 
Back
Top