Help for this page
set rowcount $last_row select tb.pk, id=identity(10) into #tmp ... , #tmp t where tb.pk = t.pk and t.id between $first_row and $last_row