Reputation: 435
I have an excel sheet column in which I need to insert only non existing records.
Example: list of university
1. Sri Krishnadevaraya University
2. Sri Krishnadeveraya University(SKU)
3. St Jerome University
4. St.Peters University
table already have "St.Peters University"
so I need to insert
1. Sri Krishnadevaraya University
2. Sri Krishnadeveraya University(SKU)
3. St Jerome University.
Upvotes: 1
Views: 747
Reputation: 69
in talend you would use the components tfileinput-->tlogrow-->tmap--tlogrow-tmysqloutput. Any filter / transformations / business logic can be done in the tmap component.
Upvotes: 1
Reputation: 8239
If you write to MySQL, you are using the tMySQLOutput component - I am only assuming here because there are no information about the job layout whatsoever.
Since MySQL has a feature called insert ignore, you should focus on
Upvotes: 1
Reputation: 1030
SELECT *
FROM *
WHERE NOT EXISTS
(
SELECT *
FROM *
WHERE * = *
)
Not too familiar with Talend but this post is quite useful :
Talend Insert where not exists
Upvotes: 1