Foutmelding database aanmaken in SQL
Geplaatst: 16 nov 2006, 18:03
Support Template
Wat is het probleem? Foutmelding
Hallo ik moest dit doen:
Maar het werkt niet, ik krijg deze foutmelding:
Wat is het probleem? Foutmelding
Hallo ik moest dit doen:
CREATE TABLE `lyrics_albums` (
`id` int(11) NOT NULL auto_increment,
`artist` int(11) NOT NULL default '0',
`album` varchar(40) NOT NULL default '',
PRIMARY KEY (`id`)
UNIQUE KEY `album` (`album`)
) TYPE=MyISAM;
CREATE TABLE `lyrics_artist` (
`id` int(11) NOT NULL auto_increment,
`artist` varchar(30) NOT NULL default '',
PRIMARY KEY (`id`),
UNIQUE KEY `artist` (`artist`)
) TYPE=MyISAM;
CREATE TABLE `lyrics_songs` (
`id` int(11) NOT NULL auto_increment,
`album` int(11) NOT NULL default '0',
`name` varchar(30) NOT NULL default '',
`text` text NOT NULL,
PRIMARY KEY (`id`)
UNIQUE KEY `name` (`name`)
) TYPE=MyISAM;
Maar het werkt niet, ik krijg deze foutmelding:
Wat doe ik verkeerd?MySQL retourneerde:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UNIQUE KEY `album` (`album`)
) TYPE=MyISAM' at line 6