par
miiidooo19 » 24 nov. 2012, 11:39
Bonjour,
voila j'ai créé un mcd puis Mld puis j'ai générer le script sql tous ça sur win design
quand j'ai exécuté le script j'ai une erreur, et quand j'exécute le scrpt table par table ça fonction bien sauf que c'est long :s et que j'aimerai comprendre d'ou ça vien le problème
exemple que j'exécute le script de deux table j'ai la même 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 'CREATE TABLE IF NOT EXISTS PROF ( idProf INTEGER NOT NULL , idUsers INTE' at line 18
et voici le script des deux tables :
CREATE TABLE IF NOT EXISTS EVENT
(
idEvent INTEGER NOT NULL,
idUsers INTEGER NOT NULL,
titleEvent VARCHAR(80) NOT NULL,
descEvent TEXT NULL,
addressEvent VARCHAR(128) NOT NULL,
postalCodeEvent INTEGER NOT NULL,
cityEvent VARCHAR(50) NOT NULL,
dateEvent DATETIME NOT NULL
, PRIMARY KEY (idEvent)
)
# -----------------------------------------------------------------------------
# TABLE : PROF
# -----------------------------------------------------------------------------
CREATE TABLE IF NOT EXISTS PROF
(
idProf INTEGER NOT NULL ,
idUsers INTEGER NOT NULL ,
dateStartContrat DATE NULL ,
dateEndContrat DATE NULL
, PRIMARY KEY (idProf)
)
Merci d'avance
Bonjour,
voila j'ai créé un mcd puis Mld puis j'ai générer le script sql tous ça sur win design
quand j'ai exécuté le script j'ai une erreur, et quand j'exécute le scrpt table par table ça fonction bien sauf que c'est long :s et que j'aimerai comprendre d'ou ça vien le problème
exemple que j'exécute le script de deux table j'ai la même erreur :
[color=#FF0000]#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 'CREATE TABLE IF NOT EXISTS PROF ( idProf INTEGER NOT NULL , idUsers INTE' at line 18[/color]
et voici le script des deux tables :
[sql]CREATE TABLE IF NOT EXISTS EVENT
(
idEvent INTEGER NOT NULL,
idUsers INTEGER NOT NULL,
titleEvent VARCHAR(80) NOT NULL,
descEvent TEXT NULL,
addressEvent VARCHAR(128) NOT NULL,
postalCodeEvent INTEGER NOT NULL,
cityEvent VARCHAR(50) NOT NULL,
dateEvent DATETIME NOT NULL
, PRIMARY KEY (idEvent)
)
# -----------------------------------------------------------------------------
# TABLE : PROF
# -----------------------------------------------------------------------------
CREATE TABLE IF NOT EXISTS PROF
(
idProf INTEGER NOT NULL ,
idUsers INTEGER NOT NULL ,
dateStartContrat DATE NULL ,
dateEndContrat DATE NULL
, PRIMARY KEY (idProf)
) [/sql]
Merci d'avance