Skip to content

Instantly share code, notes, and snippets.

@bliz937
Created March 9, 2016 09:11
Show Gist options
  • Save bliz937/0d1be04966e5f1c7df4a to your computer and use it in GitHub Desktop.
Save bliz937/0d1be04966e5f1c7df4a to your computer and use it in GitHub Desktop.
"You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '%s'"
If your query has one value that you're passing through, say, idVal, then add a comma in the tupple.
Ex
cursor.execute(query, (idVal,))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment