[日常工作]偷懒创建一个存储过程进行模拟工作.
create procedure rpadurabletest
AS
declare @a bigINT
set @a=1
while @a<1000
begin
INSERT INTO RPAtask VALUES (137898293650000+@a,'1',getdate(),getdate(),getdate(),getdate(),' ')
INSERT INTO RPARuncase VALUES (newid(),137898293650000+@a,' ','銀行對賬','[{"Name":"DWBH","Value":"0101"},{"Name":"KJND","Value":"2018"},{"Name":"KJQJ","Value":"2"},{"Name":"BHWJZ","Value":"0"},{"Name":"HBFZ","Value":"0"}]','1','1',getdate(),getdate(),getdate(),'')
commit;
WAITFOR DELAY '0:6:0' ;
set @a=@a+1
end
?
發(fā)現(xiàn)自己真夠懶的 不過存儲過程的語法忘的太快了.?
轉(zhuǎn)載于:https://www.cnblogs.com/jinanxiaolaohu/p/8567250.html
總結(jié)
以上是生活随笔為你收集整理的[日常工作]偷懒创建一个存储过程进行模拟工作.的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: C# 接口的作用浅谈举例(转)
- 下一篇: JEECG笔记