500,000 행의 SQL 스크립트가 있습니다.Begin ... 50 행마다 커밋하십시오.
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;
...
....
나는 50 줄마다 시작하는 스크립트를 생성 할 수 있어야합니다. 어떻게해야합니까? 저는 이것을 pg-admin에서 실행할 것입니다.
감사합니다, Sharadov
당신이 프로그래밍 언어의 종류를 사용할 수 있습니까? – reto