zl程序教程

您现在的位置是:首页 >  其他

当前栏目

[日常工作]偷懒创建一个存储过程进行模拟工作.

模拟存储 一个 创建 进行 过程 工作 日常
2023-09-27 14:24:17 时间

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

 

发现自己真够懒的 不过存储过程的语法忘的太快了.