Answers for "sqlalchemy query bilter by current month"

2

sqlalchemy query bilter by current month

from sqlalchemy import extract  

session.query(Event).filter(extract('year', Event.date)==2018).filter(extract('month', Event.date)==7).all()
Posted by: Guest on March-13-2021

Python Answers by Framework

Browse Popular Code Answers by Language