Environment
I am using Firebird database with SQLAlchemy as ORM wrapper.
Backgound
I know that by using in_
it is possible to pass the sales_id
list in IN
clause and get the result.
I have a use case where I must use textual sql.
Question
Here is my snippet,
conn.execute('select * from sellers where salesid in (:sales_id)', sales_id=[1, 2, 3] ).fetchall()
This always throws token unknown error
All I need is to pass the list of sales_id
([1, 2, 3]
) to bind parameter (:sales_id
) and get the result set.