Got this script from someone and when i go to import it in to the database I receive the sql syntax error with the highlighted text below in red. Since Im not very familiar with this (yet) I was hoping someone can check over this and let me know if they see a problem with the script.
Here it is
SQL-query :
CREATE TABLE amazon(
ID tinyint( 5 ) unsigned NOT NULL auto_increment,
ASIN varchar( 10 ) NOT NULL default '0',
CLICKS tinyint( 10 ) unsigned NOT NULL default '0',
DESCRIPTION text,
PRIMARY KEY ( ID ) ,
UNIQUE KEY ASIN( ASIN ) ,
UNIQUE KEY ID( ID ) ,
KEY ID_2( ID ) ,
FULLTEXT KEY DESCRIPTION( DESCRIPTION )
) TYPE = MYISAM
MySQL said:
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 'ASIN( ASIN ) , UNIQUE KEY ID( ID ) , KEY ID_2( ID ) , FULLT
Any help would be greatly appreciated.
Thanks
Here it is
SQL-query :
CREATE TABLE amazon(
ID tinyint( 5 ) unsigned NOT NULL auto_increment,
ASIN varchar( 10 ) NOT NULL default '0',
CLICKS tinyint( 10 ) unsigned NOT NULL default '0',
DESCRIPTION text,
PRIMARY KEY ( ID ) ,
UNIQUE KEY ASIN( ASIN ) ,
UNIQUE KEY ID( ID ) ,
KEY ID_2( ID ) ,
FULLTEXT KEY DESCRIPTION( DESCRIPTION )
) TYPE = MYISAM
MySQL said:
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 'ASIN( ASIN ) , UNIQUE KEY ID( ID ) , KEY ID_2( ID ) , FULLT
Any help would be greatly appreciated.
Thanks