Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

CSV to Database with increment in id column for each record

Hello, I am kinda new to Talend I understood CSV to DataBase.

But I have one scenario that I could not find any where.

I have to do csv to DataBase but I don't have column id in csv but I have it in my table which is primary key and not auto increment.

And I have to dump CSV data in table in such a way that for every record in CSV I have to put id in table as max(id+1)

please help....... I am trying this since last 2 weeks.

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi Roshan, The answer is available in below link and it seems my answer has helped to resolve your issue. https://community.talend.com/t5/Design-and-Development/CSV-to-Database/m-p/150448#M91975 You can try the method specified by Manohar also and it will also give you the same results. Warm Regards, Nikhil Thampi Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

View solution in original post

2 Replies
manodwhb
Champion II
Champion II

@roshan_wani , as part of pre job take the Max id form the target table and load as global variable and use that global variable to do incremental in tmap in the main job while loading from CSV to database using Numeric sequence 

Anonymous
Not applicable
Author

Hi Roshan, The answer is available in below link and it seems my answer has helped to resolve your issue. https://community.talend.com/t5/Design-and-Development/CSV-to-Database/m-p/150448#M91975 You can try the method specified by Manohar also and it will also give you the same results. Warm Regards, Nikhil Thampi Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂