03 2022 档案

摘要:tst00表 tst01表 CREATE TABLE `tst00` ( `id` int NOT NULL AUTO_INCREMENT, `json_v` text COLLATE utf8mb4_general_ci, `num` int DEFAULT NULL, PRIMARY KEY ( 阅读全文
posted @ 2022-03-24 10:41 star521 阅读(381) 评论(0) 推荐(0) 编辑
摘要:hive- date_format(b.month_start_date_entry ,'yyyyMMdd') mysql- DATE_FORMAT(create_time,'%Y%m%d') 阅读全文
posted @ 2022-03-11 18:53 star521 阅读(414) 评论(2) 推荐(0) 编辑
摘要:hive-sort_arry实现字段横向比较,并取出最大值 先把多字段组成数组,再数组排序,取出最后一个即为最大值 sort_array(array(nvl(is_receive_recharge,0),nvl(is_receive_coupon,0),nvl(is_receive_points,0 阅读全文
posted @ 2022-03-11 18:50 star521 阅读(489) 评论(0) 推荐(0) 编辑
摘要:hive-hive生成一段连续日期 select pos ,date_add(start_date,pos) as stat_date from (select '${entryDate}' as start_date, '${abortDate}' as end_date) temp latera 阅读全文
posted @ 2022-03-11 18:46 star521 阅读(384) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/airnew/p/9788122.html 不能直接通过 create table as select 创建表,对改变表结构丢失表备注信息(分区表) create table dwd_cstm_points_record_mi_back__202203 阅读全文
posted @ 2022-03-11 18:39 star521 阅读(216) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示