Suppose开发者_如何学运维 I have a datetime column.
"SELECT * FROM mytable WHERE thetime < INTERVAL 1 HOUR"
How do you write this in Django?
MyModel.objects.extra(where=['thetime < INTERVAL 1 HOUR'])
Suppose开发者_如何学运维 I have a datetime column.
"SELECT * FROM mytable WHERE thetime < INTERVAL 1 HOUR"
How do you write this in Django?
MyModel.objects.extra(where=['thetime < INTERVAL 1 HOUR'])
一个欧美电影?:下一篇
精彩评论