sqlalchemy query bilter by current month

Solutions on MaxInterview for sqlalchemy query bilter by current month by the best coders in the world

showing results for - "sqlalchemy query bilter by current month"
Santino
16 Mar 2017
1from sqlalchemy import extract  
2
3session.query(Event).filter(extract('year', Event.date)==2018).filter(extract('month', Event.date)==7).all()
4