随笔分类 -  oracle

摘要:trunc 函数可用于截取日期时间 用法:trunc(字段名,精度) 具体实例: -- 按1分钟聚合 select trunc(stime, 'MI') as stime -- 按1小时聚合 select trunc(stime, 'HH') as stime -- 按1天聚合 select tru 阅读全文
posted @ 2018-02-28 19:56 林中飞燕 阅读(3057) 评论(0) 推荐(0)