casper0511 发表于 2009-07-07 11:05

请问如何取前一天零点的时间

extend(current year to second,year to day) - interval(1) day to day

我这样只能取到某时

是不是要用trunc?请指教~:m01: :m01:

teatoo 发表于 2009-07-07 11:15

extend(extend(current year to second,year to day) - interval(1) day to day,year to second)

casper0511 发表于 2009-07-07 11:17

原帖由 teatoo 于 2009-7-7 11:15 发表 http://bbs2.chinaunix.net/images/common/back.gif
extend(extend(current year to second,year to day) - interval(1) day to day,year to second)


厉害~多谢 我的好好学一下extend:mrgreen:

liaosnet 发表于 2009-07-09 11:01

(current year to day - 1 units day)||" 00:00:00"

cdcd007 发表于 2009-07-14 14:09

的确很厉害

lrg223 发表于 2009-07-14 17:41

学习一下,我去看看这个函数
页: [1]
查看完整版本: 请问如何取前一天零点的时间