我有一個500,000行的sql腳本。開始......每隔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 2009-08-20 17:40:09