摘要: timestamp类型: 第一种方式: select to_date(to_char(createtime,'yyyy-mm-dd'),'yyyy-mm-dd') from tablename; 第二种方式:在字段后面“time + 0”,就可以直接转换成date类型 select createti 阅读全文
posted @ 2020-08-28 22:43 芃蓉蓁蓁 阅读(1215) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://www.cnblogs.com/hxsyl/p/4226483.html /** * * @param 要转换的毫秒数 * @return 该毫秒数转换为 * days * hours * minutes * seconds 后的格式 * @author fy.zhang 阅读全文
posted @ 2020-08-28 22:36 芃蓉蓁蓁 阅读(126) 评论(0) 推荐(0) 编辑