1
假設我有一個日期時間列。如何在Django中編寫此查詢?
"SELECT * FROM mytable WHERE thetime < INTERVAL 1 HOUR"
如何在Django中編寫此代碼?
假設我有一個日期時間列。如何在Django中編寫此查詢?
"SELECT * FROM mytable WHERE thetime < INTERVAL 1 HOUR"
如何在Django中編寫此代碼?
MyModel.objects.extra(where=['thetime < INTERVAL 1 HOUR'])