循环一次间隔时间为1秒
ORACLE 采用SYS.DBMS_LOCK的包,说明
procedure sleep(seconds in number);
-- Suspend the session for the specified period of time.
-- Input ……
[/Quote]
这个可以肯定的是在一秒里。如果一秒处理不了。就等待吧..
循环一次间隔时间为1秒
ORACLE 采用SYS.DBMS_LOCK的包,说明
procedure sleep(seconds in number);
-- Suspend the session for the specified period of time.
-- Input parameters:
-- seconds
-- In se……
[/Quote]
这个是使线程休眠多少时间。而不能控制我一个循环一次只能是一秒,从实际的问题出发,一秒钟往另外一个表中插入的时间可能只需要100毫秒,那么我需要等待900毫秒再进行下一次循环,如果一个循环一次处理数据的时间大于一秒的话这个不考虑。
循环一次间隔时间为1秒
ORACLE 采用SYS.DBMS_LOCK的包,说明
procedure sleep(seconds in number);
-- Suspend the session for the specified period of time.
-- Input parameters:
-- seconds
-- In se……
[/Quote]
循环一次间隔时间为1秒
ORACLE 采用SYS.DBMS_LOCK的包,说明
procedure sleep(seconds in number);
-- Suspend the session for the specified period of time.
-- Input parameters:
-- seconds
-- In seconds, currently the maximum resolution is in hundreths of
-- a second (e.g., 1.00, 1.01, .99 are all legal and distinct values).
循环一次间隔时间为1秒
ORACLE 采用SYS.DBMS_LOCK的包,说明
procedure sleep(seconds in number);
-- Suspend the session for the specified period of time.
-- Input parameters:
-- seconds
--……
[/Quote]
汗,我觉得你说的“如果一个循环一次处理数据的时间大于一秒的话这个不考虑。” 恰恰是必须考虑的
[Quote=引用 2 楼 java3344520 的回复:]
循环一次间隔时间为1秒
ORACLE 采用SYS.DBMS_LOCK的包,说明
procedure sleep(seconds in number);
-- Suspend the session for the specified period of time.
-- Input parameters:
-- seconds
-- In seconds, curr……
[/Quote]
这个研究下