Make Sqlalchemy Use Date In Filter Using Postgresql

后端 未结 4 1934
广开言路
广开言路 2021-02-05 05:32

I\'m trying to perform the following query in Sqlalchemy.

Select * from \"Mytable\" where Date(date_time_field) = \"2011-08-16\";

I have tried

4条回答
  •  甜味超标
    2021-02-05 05:40

    in postgreSQL if date_time_field is one field of your table then quer must like this. Select * from Mytable where date_time_field = '2011-08-16'

提交回复
热议问题