how do you use integer variables in sql query?

Use placeholders in the sql statement, and then pass in a tuple that contains the specific values you’re looking for:

test_db.execute('select count(testers) from test where number_of_testers = ?', (num_tests,))

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top