16,553
社区成员
发帖
与我相关
我的任务
分享
select * from tongji where strftime('%Y%m%d',[销售时间])=strftime('%Y%m%d','now','localtime') --当天
select * from tongji where [销售时间]=date('now','localtime') --当天
select * from tongji where strftime('%Y%m',[销售时间])=strftime('%Y%m','now','localtime') --当月
select * from tongji where strftime('%Y',[销售时间])=strftime('%Y','now','localtime') --当年