This is Python specific therefore this is not completely helpful.
I have a list of ids
[120931, 129301923, 1293019, 193923, 42939]
and instead of running a command for each of them with, e.g.
for row in c.execute(f'SELECT * from sdk WHERE app = 120931'):
print(row)
I would like to pass in the entire list of ids for 'app' and get every row where those ids appear. Similar to the below, however with a variable (a python list) in the query
for row in c.execute(f'SELECT * from sdk WHERE app IN (120931, 129301923, 1293019, 193923, 42939)'):
print(row) # passes entire list in parens but as a Python variable
I've tried string interpolation but it doesn't work.