In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Requirement description
Loc_sys_busi_strategy is a vertical table, which needs to be converted into a horizontal table to facilitate Redis QUEUE processing.
Source data format
Demand format
Notice that the speed,area is the title heading in the requirements format.
Format conversion
Select busirule_id,element_key,element_val from loc_sys_busi_strategy
Title heading conversion
Select busirule_id, 'speed' speed,' area' area from loc_sys_busi_strategy where 1 = 2 unionselect busirule_id, decode (element_key, upper ('speed'), element_val), decode (element_key, upper (' area'), element_val) from loc_sys_busi_strategy
Merge select busirule_id, to_char (wmsys.wm_concat (speed)) speed, to_char (wmsys.wm_concat (area)) area from (select busirule_id, 'speed' speed,' area' area from loc_sys_busi_strategy where 1 = 2 unionselect busirule_id, decode (element_key, upper ('speed'), element_val), decode (element_key, upper (' area')) Element_val) from loc_sys_busi_strategy) group by busirule_id
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.