python

Use of IN Clause Sqlalchemy

If you want to filter the records based on multiple values of a column then you can use in_ Clause of Sqlalchemy

session.query(
    MyModelname
).filter(
    MyModelname.id.in_((10,11,12,13))
).all()
Was this helpful?