0
我試圖使用Mongoid將MySQL支持的應用程序移植到MongoDB。一些重要的查詢使用MySQL的日期時間的工具,如:Mongoid替換爲MySQL的DateTime字段工具,如select * from posts where HOUR(posted)= 01
select * from posts where HOUR(posted) = 01
貼在哪裏是一個完整的日期時間時間戳。這怎麼能用Mongoid來實現?