我有一个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