Hello ,
in a python application i wanted to insert datas to some columns of a table , the columns tha have as name "XS" , "S" , and "M" . i tried this query : curso1.execute('INSERT INTO donnees (%s) VALUES (%s);',(liste1[i],qtetaillevar[i]))
, but when it compiles it , when i get this error message :
when liste1[i] = "XS" and qtetaillevar[i] = '4'
ProgrammingError: (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 ''XS') VALUES ('3')' at line 1") .