Posts by puma_hobby • 9 points
2 posts
-
-1
votes1
answer355
viewsA: Error in sql-Insert command when passing a variable as parameter (python 3)
Resolved with: crawler.execute('INSERT INTO{}VALUES (id, \'{}\', \'{}\')'.format(tabela, tema, enunciado))
-
1
votes1
answer355
viewsQ: Error in sql-Insert command when passing a variable as parameter (python 3)
I am trying to pass my "table" variable to the mysql command, but it is returning an error (of sql) during execution. What am I missing? Here I created the table variable table = input('Table name:…