![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
旅程
南城梦√
听歌,学习
展开
-
2020-10-15
hive字符串处理https://blog.csdn.net/qq_44011386/article/details/108364509转载 2020-10-15 16:23:40 · 75 阅读 · 0 评论 -
unix_timestamp/from_unixtime
select unix_timestamp(‘2018-12’,‘yyyy’);1514736000select from_unixtime(1514736000);2018-01-01 00:00:00select unix_timestamp(‘2018-12’,‘yyyy-MM’);1543593600select from_unixtime(1543593600);2018-12-01 00:00:00select from_unixtime(1543593600,‘yyyy’);转载 2020-10-15 16:21:36 · 113 阅读 · 0 评论 -
2020-09-01
null 与 任何数运算结果都为null原创 2020-09-01 09:43:53 · 65 阅读 · 0 评论 -
sql-空格
SQL 中使用ltrim()去除左边空格,rtrim()去除右边空格,没有同时去除左右空格的函数,要去除所有空格可以用replace(字符串,’ ‘,’’),将字符串里的空格替换为空。 例:去除空格函数declare @llk char(20)set @llk = ’ hell sq ’print ltrim(@temp) --去除左边空格print rtrim(@temp) --去除右边空格print replace(@llk,’ ‘,’’) --去除字符串里所有空格print原创 2020-08-19 09:21:33 · 1373 阅读 · 0 评论 -
sql-数据类型转换
数据类型转换cost(字段 as 要转化成的数据类型)convert(数据类型 ,字段)原创 2020-08-06 14:15:00 · 121 阅读 · 0 评论 -
1.旅程
-----------------------旅程-------------------------原创 2020-05-27 19:39:30 · 361 阅读 · 0 评论