Answers for "sqlite query using string as parameter in python"

0

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])
Posted by: Guest on September-03-2020

Code answers related to "sqlite query using string as parameter in python"

Python Answers by Framework

Browse Popular Code Answers by Language