Feb-17-2019, 07:14 PM
If it is in the same form as "150, 110, 1, 164":
(assumes uid is a string)
sql = "SELECT * FROM anställda WHERE ID = ?"
data = (uid,) # you need the comma as it expects a tuple!
conn.execute(sql, data)
Does this work?
(assumes uid is a string)
sql = "SELECT * FROM anställda WHERE ID = ?"
data = (uid,) # you need the comma as it expects a tuple!
conn.execute(sql, data)
Does this work?