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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Mysql output and Tmap

Hello,
I'm using Talend and i'm getting stuck in a small problem :
- I have 2 table in input
- I have 2 table in output
- The second table in output need the id of the first output table (IS_REFERENCE) and one data from the input table (code_barre).
I get the code_barre without problem, but i can't get the IS_REFERENCE.
Labels (2)
3 Replies
Anonymous
Not applicable
Author

Hi
From your screenshot, I see that you do nothing for IS_REFERENCE column.
You can type in: Numeric.sequence("s1",1,1) for IS_REFERENCE column of the first output table and type in: Numeric.sequence("s2",1,1) for IS_REFERENCE column of the second output table.
Best regards
shong
Anonymous
Not applicable
Author

This is an auto increment field, i don't have to set a value (and the table already contain data).
And the problem is that i will have to do update or create : so i want to get this value.
_AnonymousUser
Specialist III
Specialist III

This is an auto increment field, i don't have to set a value (and the table already contain data).
And the problem is that i will have to do update or create : so i want to get this value.

I found a way to do it! Maybe this is not the cleanest solution but it worked for me, here is what I did
1. I created a Job to load the data for the parent table (with just one mysql input and one mysql output)
2. I created a Job to load the data for the child table, but in this case I needed to add two mysql inputs, one for the parent table and one for the child table, in the map component is where I made the join between these two tables, then I just put in the output table the fields that I needed from the child table and the unique id from the parent table
It's kind of confusing but I hope I made my point clear, if you didn't understand what I did you can contact me or post your doubts here 0683p000009MACn.png