[Answered ]-In SQLAlchemy, how to input a list and get eligible items in the table?

2👍

Already know the answer, there is a in_ function

0👍

Try:

ID_list = [1,3,4] 
DBSession.query(TableA).filter(TableA.id.in_(ID_list))

Leave a comment