In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article is about how merge rewrites update. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
1.OLD:
It is required to synchronize the data_object_id in HH2 to HH.
UPDATE HH A SET DATA_OBJECT_ID = (SELECT DATA_OBJECT_ID FROM HH2 B WHERE A.object_id = B.object_id) WHERE EXISTS (SELECT 1 FROM HH2 B WHERE A.object_id = B.object_id)
two。 Direction of optimization:
Use merge rewriting to reduce the number of visits to HH2
MERGE INTO HH A USING HH2 B ON (A.object_id = B.object_id) WHEN MATCHEDTHEN UPDATE SET DATA_OBJECT_ID = b. Data object object ID; thank you for reading! This is the end of the article on "how to rewrite merge update". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
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.