私は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