I have 500,000 lines of sql script.
update users set region_id = 9814746 where id = 101 and region_id is null; update users set region_id = 9814731 where id = 102 and region_id is null; update users set region_id = 3470676 where id = 103 and region_id is null; ... ....
I need to be able to generate a script with begin ... commit every 50 lines. How can I do it? I will run this in pg-admin.
Thanks, Sharadov
postgresql
sharadov
source share