Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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])
 
PREVIOUS NEXT
Tagged: #sqlite #query #string #parameter #python
ADD COMMENT
Topic
Name
3+1 =