我有50万行SQL脚本:延迟或等待 - 为声明
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行10秒的延迟。 pgsql是否有像t-sql这样的waitfor语句。
谢谢。
我包括猫作为SQL的源代码可能不是一个文件,而是由另一个程序或shell脚本生成的,所以命令的结构可以很容易地改变。 但我总体上表明你的观点。 – 2009-08-26 23:14:59
嗯,不知道为什么你得到downvote - 搁置一只猫的文体用途。 ;-)如果我每次通过perl/awk/you-name过滤SQL语句都得到赞成,那么为了获得我想要的行为,我会成为Jon Skeet。 +1 – pilcrow 2009-08-27 14:40:35