poster
0
Q:

sqlite query using string as parameter in python

import sqlite3

conector = sqlite3.connect("database.db")
cursor = conector.cursor()
string = "Some interesting stuff"
cursor.execute("SELECT * FROM table WHERE item = ?", [string])
0

New to Communities?

Join the community