1 2 3
摘要: 日期处理函数 1.date_format:将日期进行格式化 语法:date_format(日期,格式) 作用:把一个字符串日期格式化为指定的格式 年月日,时分秒:'yyyy-MM-dd HH:mm:ss' select date_format('2017-01-01','yyyy-MM-dd HH: 阅读全文
posted @ 2021-08-26 22:19 teacher-程 阅读(631) 评论(0) 推荐(0) 编辑
摘要: 时间函数 一、获取系统时间函数 1.1 获取当前完整时间 select now(); 》2021-12-10 11:13:39.56 current_timestamp 同 now() 函数等效。 1.2 获取当前日期 select current_date; 》2021-12-10 1.3 获取当 阅读全文
posted @ 2021-08-26 22:18 teacher-程 阅读(984) 评论(0) 推荐(0) 编辑
levels of contents