+ -
当前位置:首页 → 问答吧 → Oracle时间问题

Oracle时间问题

时间:2011-11-08

来源:互联网

如何给最大时间添加一分钟?下面语句要如何修改?

select to_date((select max(c_createtime) from t_templateChildtemp),'yyyy-mm-dd hh24:mi')+(1/1440) from dual;

作者: xiechunhuait   发布时间: 2011-11-08

c_createtime是什么类型?
SQL code
SELECT TO_DATE (MAX (c_createtime), 'yyyy-mm-dd hh24:mi') + (1 / 1440)
  FROM t_templatechildtemp

作者: tx2730   发布时间: 2011-11-08