Réduire
Brouillon
0
03/08/2014
0

La requête :

SELECT * FROM tbTest WHERE index = 1

Renvoie l'erreur suivante :

#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 'index = 1 LIMIT 0, 30' at line 1

Mots-clés:
mySQL

index doit être entre quotes inversées (`)

Voici la requête correcte :

SELECT * FROM tbTest WHERE `index` = 1