[日常工作]偷懒创建一个存储过程进行模拟工作.
生活随笔
收集整理的這篇文章主要介紹了
[日常工作]偷懒创建一个存储过程进行模拟工作.
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
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
?
發現自己真夠懶的 不過存儲過程的語法忘的太快了.?
轉載于:https://www.cnblogs.com/jinanxiaolaohu/p/8567250.html
總結
以上是生活随笔為你收集整理的[日常工作]偷懒创建一个存储过程进行模拟工作.的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: C# 接口的作用浅谈举例(转)
- 下一篇: JEECG笔记