Non mi era mai successo e oggi nel database, nel creare una tabella, mi da un errore di sintassi:"#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 ''chat' (
'id' INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
'from' VARCHAR(255' at line 1"
Ecco il codice che inserisco:
Mi potreste, per favore, aiutare a risolverlo che mi serve per un sito che devo consegnare domani?codice:CREATE TABLE 'chat' ( 'id' INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, 'from' VARCHAR(255) NOT NULL DEFAULT '', 'to' VARCHAR(255) NOT NULL DEFAULT '', 'message' TEXT NOT NULL, 'sent' DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', 'recd' INTEGER UNSIGNED NOT NULL DEFAULT 0, PRIMARY KEY ('id'), INDEX 'to' ('to'), INDEX 'from' ('from') ) ENGINE = InnoDB;
Grazie a tutti in anticipo.
Saluti cicciaramba.

Rispondi quotando