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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Process 200 line at a time from MysqlInput

Hello everyone,

 

I have a job were I need to retrieve and pass 200 line each time until the end of the table to a child job.

I found on the forum a solution were they used a tLoop with a step of 200 and then a query like so :

SELECT A, B, C, D FROM XXX WHERE YYY AND ROWNUM > " + String.valueOf(((Integer)globalMap.get("tLoop_1_CURRENT_VALUE")))) + " AND ROWNUM < " + String.valueOf(((Integer)globalMap.get("tLoop_1_CURRENT_VALUE"))) +200)

 

But I'm using a tMySQLInput and don't have the ROWNUM proper to Oracle.

Is there a way around or maybe another way to processe 200 line at a time ?

Labels (3)
1 Reply
TRF
Champion II
Champion II

Use this instead:
LIMIT offset, row_count
With offset as the starting row and row_count = 200 in your case