Add fields in Oracle and then update statements in batches

Source: Internet
Author: User


Oracle adds fields and then updates the statement in batches. This business requirement is: a new field is added to t_bnet_customer in an old table. This field is included in t_customer_extend in another table, the original statement: www.2cto.com UPDATE t_bnet_customer a SET. customer_id = (SELECT B. cust_nbr FROM t_customer_extend B WHERE. id = B. bnet_id) where exists (SELECT B. cust_nbr FROM t_customer_extend B WHERE. id = B. bnet_id) subsequent statement: update (select. customer_id a1, B. cust_nbr b1 from t_bnet_customer a, t_customer_extend B where. id = B. bnet_id) set a1 = b1; the statement above www.2cto.com is restricted by oracle. If it cannot be executed, replace it with the following: update (select/* + BYPASS_UJVC */. customer_id a1, B. cust_nbr b1 from t_bnet_customer a, t_customer_extend B where. id = B. bnet_id) set a1 = b1;

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.