Check out example codes for "sqlite query using string as parameter in python". It will help you in understanding the concepts better.

Code Example 1

import sqlite3

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

Learn ReactJs, React Native from akashmittal.com