mysqlde aşaıdaki dosyayı import edip table yaratmak isterken su hata cıkıyor!neresi hatalı?
SQL query:
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 ;
MySQL said:
#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
AŞAĞIDA KULLANDIGIM DOSYA VAR!
-------------------------------------------------------
base.sql diye bi dosya içeriği bu!
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;