If the target table already has corresponding data, it is not inserted.

Source: Internet
Author: User

In many cases, you may encounter a requirement: the target table t (A, B, C, D, E)
Requirement: when inserting data into the target table, if the data source is the same as some columns (eg: A, B, C) of a certain record in the target table, no data is inserted.
Solution: Use lookup to associate the source SRC with the target table des, use SRC as the stream, and use des as the traffic direction. The search failure option is rejected. The data stream we need is the data on the reject stream, and the matching data stream is saved to a file at will.
TIPS: If you want to match a field such as char, you need to add spaces as needed.
Example:

 

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.