试试这个,where f_vc_renwsx<datetime() +1

解决方案 »

  1.   

    你条语句不用自己写的,你查下query的用法吧。
      

  2.   

    where f_vc_renwsx<datetime() +1 and f_vc_renwsx>datetime();
      

  3.   

    对不起,我描述的有误
     f_vc_renwsx代表任务时限,具体是指天数,就是在几天内完成
      

  4.   

    where f_vc_jiessj+ f_vc_renwsx>datetime()  and f_vc_jiessj+ f_vc_renwsx<datetime() +1
    到期那天大于今天这个时刻并且到期那天小于明天这个时刻
    大概就是这个意思,sql语法不一定正确,先试试, 不行你就查查sqllite的语法吧
      

  5.   

    select  julianday(strftime('%Y-%m-%d',datetime('2014-09-17','+10 day'))) - julianday(strftime('%Y-%m-%d','now'))
    返回 5 天按你的表大概类似
    where  julianday(strftime('%Y-%m-%d',datetime(f_vc_jiessj, '+"+ f_vc_renwsx+" day'))) - julianday(strftime('%Y-%m-%d','now'))=1
      

  6.   

    where julianday(strftime('%Y-%m-%d',datetime(f_vc_jiessj, '+'||f_vc_renwsx||' day' )))
     - julianday(strftime('%Y-%m-%d','now')) =1