I have a python list, say l
l = [1,5,8]
I want to write a sql query to get the data for all the elements of the list, say
s
a simpler solution:
lst = [1,2,3,a,b,c] query = f"""SELECT * FROM table WHERE IN {str(lst)[1:-1}"""