摘要: date_add 函数 例子:date_add('day',-1,current_date) date_diff 函数 例子:date_diff('day',cast(a.dt1 as timestamp),cast(b.dt1 as timestamp)) 阅读全文
posted @ 2019-10-16 16:47 数据分析笔记(自用) 阅读(4979) 评论(0) 推荐(0) 编辑
摘要: 链接:https://yq.aliyun.com/articles/654743 阅读全文
posted @ 2019-10-16 11:32 数据分析笔记(自用) 阅读(1373) 评论(0) 推荐(0) 编辑
摘要: 链接:https://blog.csdn.net/qq_34105362/article/details/80408621 阅读全文
posted @ 2019-10-16 10:51 数据分析笔记(自用) 阅读(7891) 评论(0) 推荐(0) 编辑
摘要: Command + Shift + L 光标同时定位多行 Command + Enter 在下一行插入新行。举个栗子:即使光标不在行尾,也能快速向下插入一行。 阅读全文
posted @ 2019-10-15 17:12 数据分析笔记(自用) 阅读(288) 评论(0) 推荐(0) 编辑
摘要: The function date_trunc is conceptually similar to the trunc function for numbers. source is a value expression of type timestamp or interval. (Values 阅读全文
posted @ 2019-10-14 12:06 数据分析笔记(自用) 阅读(5427) 评论(0) 推荐(0) 编辑
摘要: select curdate(); --获取当前日期 select curdate(); --获取当前日期 select last_day(curdate()); --获取当月最后一天。 select DATE_ADD(curdate(),interval -day(curdate())+1 day 阅读全文
posted @ 2019-09-17 16:43 数据分析笔记(自用) 阅读(4095) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-08-29 20:14 数据分析笔记(自用) 阅读(13553) 评论(0) 推荐(0) 编辑
摘要: 链接:https://www.cnblogs.com/Niko12230/p/5945133.html 阅读全文
posted @ 2019-08-29 19:54 数据分析笔记(自用) 阅读(29529) 评论(2) 推荐(1) 编辑
摘要: mysql中的substr()函数和hibernate的substr()参数都一样,就是含义有所不同。 用法: substr(string string,num start,num length); string为字符串; start为起始位置; length为长度。 区别: mysql中的star 阅读全文
posted @ 2019-08-29 16:13 数据分析笔记(自用) 阅读(1805) 评论(0) 推荐(1) 编辑
摘要: 链接:https://blog.csdn.net/qq_26442553/article/details/79465417 if 函数举例: 阅读全文
posted @ 2019-08-27 17:27 数据分析笔记(自用) 阅读(825) 评论(0) 推荐(0) 编辑