informix 查当天数据是怎么查的,试过一些函数但不成功,请教

id                                plan_res_id     sign_time             sign_longitude     sign_latitude     sign_state     error_range     status   
--------------------------------  --------------  --------------------  -----------------  ----------------  -------------  --------------  ---------
402880f7393285c00139329bf6a9000c  1               2012-8-17 上午11:24:05  -122.084095        37.422005         1              (null)          1         
402880f7393285c0013932a01d92000d  1               2012-8-17 上午11:28:37  -122.084095        37.422005         1              (null)          0         
402880f7393285c0013932b392f1000e  1               2012-8-17 上午11:49:53  -122.084095        37.422005         1              (null)          1  


这是数据,我要查sign_time =today,这个条件怎么写,我的日期是字符
参与4

4同行回答

wisefoxwisefoxCIOccc
如果sign_time时间日期类型where extend(sign_time,year to day)=today如果sign_time是字符串,且前10位是日期where substr(sign_time,1,10)=extend(today,year to day)显示全部
如果sign_time时间日期类型
where extend(sign_time,year to day)=today
如果sign_time是字符串,且前10位是日期
where substr(sign_time,1,10)=extend(today,year to day)收起
互联网服务 · 2012-08-17
浏览696

提问者

shuidi
业务经理ww

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2012-08-17
  • 关注会员:0 人
  • 问题浏览:2736
  • 最近回答:2012-08-17
  • X社区推广