On
6/8/2017 5:53 PM, marcinha rocha wrote: > Hi guys! I have the following queries, which will basically select
> data, insert it onto a new table and update a column on the original > table.
You're right, that is just an example.
I'm basically using a CTE to select the data and then, inserting some rows onto a new table.
I just don't know how to tell my function to perform 2000 records at once, and then when calling it again it will "know" where to start from
Maybe, I already have everything I need?
On my original select, the row will have migrated = false. Maybe All I need to put is a limit 2000 and the query will do the rest?
Example:
|