lundi 21 décembre 2015

SQLite3 near syntax error

Trying to insert four different things into my database but I get following error:

near ".10586": syntax error 

Here is my code:

b.execute("INSERT INTO logs VALUES(%s, %s, %s, %s)" % (hostname, os, ip.decode('utf-8'), time.strftime("%x")))

Aucun commentaire:

Enregistrer un commentaire