pb sur creation de table
Posté : 19 nov. 2005, 18:34
J'utilise mysql 5
mon pb est un message d'erreur très élaboré
"ocalhost --> 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 article (
CodeArticle char(20) PRIMARY KEY,
CodeCategorie char' at line 1
Code : Tout sélectionner
BEGIN;
CREATE TABLE article (
CodeArticle char(20) PRIMARY KEY,
CodeCategorie char(20) NOT NULL,
Nomarticle char(80) NOT NULL,
Prix double DEFAULT \"0\" NOT NULL,
Lienfournisseur char(100),
Photo blob);
INSERT INTO article(CodeArticle,CodeCategorie,
Nomarticle, Prix,Lienfournisseur);
VALUES ("WRT54G","EQUIPRES","Routeur WIFI 11G Linksys WRT54G","89","http://www.linksys.com");
COMMIT;
"ocalhost --> 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 article (
CodeArticle char(20) PRIMARY KEY,
CodeCategorie char' at line 1