Quering in Database sqlite3
问题 I try to write function for my project, which allows user partial search and highlights rows/records according to column "name" with sqlite3 statements. But I dont know how to wrie the function that it works with SQLite3 statement and matches rows/records in treeview. def saerch_medicine(): #query with sqlite3 conn = sqlite3.connect("pharmacy.db") cur = conn.cursor() conn.commit() cur.execute("SELECT name FROM medicine WHERE name LIKE '%"name_column"%'") selections=[] for i in cur: tree.