|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Senior Member
Iscritto dal: Feb 2009
Messaggi: 700
|
[MySql] Perchè mi dà errore per questa query di creazione di una tabella?
Ciao,
c'è questa query di una creazione di una tabella di un certo script che se provo ad eseguirla mi dà errore: Codice:
DROP TABLE IF EXISTS `#__phocagallery_votes`; CREATE TABLE `#__phocagallery_votes` ( `id` int(11) NOT NULL auto_increment, `catid` int(11) NOT NULL default 0, `userid` int(11) NOT NULL default 0, `date` datetime NOT NULL default '0000-00-00 00:00:00', `rating` tinyint(1) NOT NULL default '0', `published` tinyint(1) NOT NULL default '0', `checked_out` int(11) unsigned NOT NULL default '0', `checked_out_time` datetime NOT NULL default '0000-00-00 00:00:00', `ordering` int(11) NOT NULL default '0', `params` text, PRIMARY KEY (`id`) ) TYPE=MyISAM DEFAULT CHARSET=utf8; `checked_out` int( 11 ) unsigned NOT NULL default '0', ed è il seguente: Messaggio di MySQL: Documentazione #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 'DEFAULT CHARSET=utf8' at line 13 Da cosa può dipendere? come risolvere? Grazie |
![]() |
![]() |
![]() |
#2 |
Senior Member
Iscritto dal: Nov 2005
Messaggi: 2774
|
Forse sono gli apici del valore di default
|
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 20:35.