Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
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