Mysql

Résolu
gigislot -  
 gigislot -
Bonjour,
J'ai un message d'erreur lors d'une éxécution mysql (version 5.0.67):

voici ce que je voulais éxécuter:

CREATE TABLE forum_sujets(
id int( 6 ) NOT NULL AUTO_INCREMENT ,
auteur VARCHAR( 30 ) NOT NULL ,
titre text NOT NULL ,
date_derniere_reponse datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY ( id ) TYPE = MYISAM ;

et voici le message d'erreur:

#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 'TYPE=MyISAM' at line 7

2 réponses

afrodje Messages postés 759 Date d'inscription   Statut Membre Dernière intervention   168
 
Essai comme ca :

CREATE TABLE forum_sujets(
id int( 6 ) NOT NULL AUTO_INCREMENT ,
auteur VARCHAR( 30 ) NOT NULL ,
titre text NOT NULL ,
date_derniere_reponse datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY ( id ) ) ; 
0
gigislot
 
merci
0