Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2540 connectés 

  FORUM HardWare.fr
  Programmation
  SQL/NoSQL

  export DbDesigner VS import MySQL 5

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

export DbDesigner VS import MySQL 5

n°1582953
theredled
● REC
Posté le 05-07-2007 à 18:06:19  profilanswer
 

Yo
 
J'exporte une table modifiée avec DbDesigner, mais lors de l'import, MySQL, me trouve des erreurs de syntaxe

Citation :

failed : 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 '; CREATE TABLE cadeaux ( id INTEGER(11) NOT NULL, id_element INTEGER(11) NOT' at line 1


C'est au début du fichier, voici le truc :

Citation :


CREATE TABLE artistes (
  id MEDIUMINT(9) NOT NULL,
  nom VARCHAR(100) NOT NULL,
  siteweb VARCHAR(100) NOT NULL,
  PRIMARY KEY(id)
);
 
CREATE TABLE cadeaux (
  id INTEGER(11) NOT NULL,
  id_element INTEGER(11) NOT NULL,
  id_order INTEGER(11) NOT NULL,
  nature VARCHAR(30) NOT NULL,
  info VARCHAR(30) NOT NULL,
  id_giver INTEGER(11) NOT NULL,
  id_dest INTEGER(11) NOT NULL,
  date_first_dl INTEGER(9) NOT NULL,
  email_dest VARCHAR(50) NOT NULL,
  code VARCHAR(20) NOT NULL,
  OK_for_DL TINYINT(4) NOT NULL,
  format VARCHAR(4) NOT NULL,
  PRIMARY KEY(id)
);
 
CREATE TABLE cart (
  id INTEGER(11) NOT NULL,
  id_client INTEGER(11) NOT NULL,
  id_track INTEGER(11) NOT NULL,
  info VARCHAR(40) NOT NULL,
  nature VARCHAR(40) NOT NULL,
  infoscomp TEXT NOT NULL,
  PRIMARY KEY(id),
  INDEX unique_cart(id_client, id_track, nature)
);


Ou est le pb ?


---------------
Contes de fées en yaourt --- --- zed, souviens-toi de ma dernière lettre. --- Rate ta musique
mood
Publicité
Posté le 05-07-2007 à 18:06:19  profilanswer
 

n°1583045
theredled
● REC
Posté le 05-07-2007 à 23:55:35  profilanswer
 

up [:agla]


---------------
Contes de fées en yaourt --- --- zed, souviens-toi de ma dernière lettre. --- Rate ta musique

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  SQL/NoSQL

  export DbDesigner VS import MySQL 5

 

Sujets relatifs
[MySQL] Insertion multi table avec auto-increment[RÉSOLU] Aide pour une requete MySQL
Utilisation requete php mysql contenant WHERE et ANDPHP/MySQL : Cast implicite foireux
Visual Studio JAVA et Mysql[mysql] CONCAT + GROUP BY ?
Doc mysql authentification pour apache2[MYSQL] ORDER BY la plus petite de deux valeurs
Mysql : script avec tables en majuscules --> tables crées en minusculeVBS ajouter un élément dans une table MYSQL
Plus de sujets relatifs à : export DbDesigner VS import MySQL 5


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR