当前位置: 代码迷 >> Informix >> set end_date=(to_date(bill_mon,'%Y%m') + 1 units month ) -1 units second wher
  详细解决方案

set end_date=(to_date(bill_mon,'%Y%m') + 1 units month ) -1 units second wher

热度:4943   发布时间:2013-02-26 00:00:00.0
求助:set end_date=(to_date(bill_mon,'%Y%m') + 1 units month ) -1 units second wher
set end_date=(to_date(bill_mon,'%Y%m') + 1 units month ) -1 units second
where end_date is null;是是什么意思?

------解决方案--------------------------------------------------------
前面应该还有update 什么什么表 吧?

这个意思比较明显吧,当 end_date为空时,就更新为bill_month加一个月再减一秒的时间,实际上就是bill_month对应的那个月的最后一秒,如bill_month为'200907',那么结果应该是7月31号的23:59:59
  相关解决方案