you can use any python expression, literals and variables alike. On Jun 15, 2006, at 5:06 AM, Chetan Thapliyal wrote:
> Hi > > I would like to know whether it is possible or not to use variables > within WHERE clause in query.select() function. My query is something > like this: > > startday = xxx > endday = yyy > > session = create_session() > query = session.query(TimeLog) > timelogs = query.select( > and_(TimeLog.c._date >= startday, > TimeLog.c._date <= endday)) > > Regards > Chetan > > > > _______________________________________________ > Sqlalchemy-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users _______________________________________________ Sqlalchemy-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

