Erreur de sintaxe SQL je comprend pas
Résolu
dadou9101
Messages postés
107
Date d'inscription
Statut
Membre
Dernière intervention
-
dadou9101 Messages postés 107 Date d'inscription Statut Membre Dernière intervention -
dadou9101 Messages postés 107 Date d'inscription Statut Membre Dernière intervention -
Bonjour, je n arrive pas a voir ou est mon ereur de sintaxe sur ma requete SQL
je veux en effet faire une modification de mon formulaire et j emploie cette requete la
UPDATE `checklist`.`magasin`
SET nom_mag = '$nom_mag',
ouv_mag = '$ouv_mag',
adr_mag = '$adr_mag',
adrliv_mag = '$adrliv_mag',
chefp_mag = '$chefp_mag',
cheft_mag = '$cheft_mag',
com_mag = '$com_mag',
comtel_mag = '$comtel_mag',
WHERE `magasin`.`id_mag` = 830920 LIMIT 1 ;
Pouvez vous m éclairez
je veux en effet faire une modification de mon formulaire et j emploie cette requete la
UPDATE `checklist`.`magasin`
SET nom_mag = '$nom_mag',
ouv_mag = '$ouv_mag',
adr_mag = '$adr_mag',
adrliv_mag = '$adrliv_mag',
chefp_mag = '$chefp_mag',
cheft_mag = '$cheft_mag',
com_mag = '$com_mag',
comtel_mag = '$comtel_mag',
WHERE `magasin`.`id_mag` = 830920 LIMIT 1 ;
Pouvez vous m éclairez
A voir également:
- Erreur de sintaxe SQL je comprend pas
- Erreur 0x80070643 - Accueil - Windows
- Erreur 4101 france tv - Forum Lecteurs et supports vidéo
- J'aime par erreur facebook notification - Forum Facebook
- Code erreur f3500-31 ✓ - Forum Bbox Bouygues
- Java code erreur 1603 ✓ - Forum Windows
6 réponses
Peut-être me fourvoyè-je, mais que signifie:
`checklist`.`magasin`
et
`magasin`.`id_mag`
A quoi correspond le point '.' ?
`checklist`.`magasin`
et
`magasin`.`id_mag`
A quoi correspond le point '.' ?
Peut-être me fourvoyè-je, mais que signifie:
`magasin`
et
`id_mag`
A quoi correspondent les quotes inversées '`' ?
`magasin`
et
`id_mag`
A quoi correspondent les quotes inversées '`' ?
Les quotes obliques, c'est un truc pourri de MySQL servant à pouvoir utiliser les mots réservés comme noms de bdd, tables ou colonnes.
Effectivement la limite me sert a rien mais jai toujours la meme erreur
UPDATE `cheklist`.`magasin` SET nom_mag = '$nom_mag',
ouv_mag = '$ouv_mag',
adr_mag = '$adr_mag',
adrliv_mag = '$adrliv_mag',
chefp_mag = '$chefp_mag',
cheft_mag = '$cheft_mag',
com_mag = '$com_mag',
comtel_mag = '$comtel_mag',
WHERE `magasin`.`id_mag` =830920;
#1064 - Erreur de syntaxe près de 'WHERE `magasin`.`id_mag` = 830920' à la ligne 9
UPDATE `cheklist`.`magasin` SET nom_mag = '$nom_mag',
ouv_mag = '$ouv_mag',
adr_mag = '$adr_mag',
adrliv_mag = '$adrliv_mag',
chefp_mag = '$chefp_mag',
cheft_mag = '$cheft_mag',
com_mag = '$com_mag',
comtel_mag = '$comtel_mag',
WHERE `magasin`.`id_mag` =830920;
#1064 - Erreur de syntaxe près de 'WHERE `magasin`.`id_mag` = 830920' à la ligne 9
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question
UPDATE `magasin` SET nom_mag = '$nom_mag',
ouv_mag = '$ouv_mag',
adr_mag = '$adr_mag',
adrliv_mag = '$adrliv_mag',
chefp_mag = '$chefp_mag',
cheft_mag = '$cheft_mag',
com_mag = '$com_mag',
comtel_mag = '$comtel_mag',
WHERE `id_mag` =830920 LIMIT 1 ;
mais meme la sa me met la meme erreur
cheklist correspont au nom de ma base de donne
et magasin au nom de ma table