0
点赞
收藏
分享

微信扫一扫

SQLite 查询本月的数据

DT_M 2022-05-25 阅读 106

查询本月

where a.create_time between datetime('now','start of month','+1 second') and 

datetime('now','start of month','+1 month','-1 second')



查询多少天之内

where julianday(datetime('now','localtime'))-julianday(a.create_time) <300


这明白的就是和sqlserver 干啊  连个datediff都没有




举报

相关推荐

0 条评论