declare @n int=1; #设置变量n
while(@n<12) #n小于12,也就是添加到测试11
begin #开始执行
set @n=@n+1; #设置自增方式
update [DSB].[dbo].[TPADED] set DED003='测试'+CAST(@n AS CHAR(2)) #插入数据
end
GETDATE()获取当前时间
declare @m int=1;
while(@m<30000)
begin
set @m=@m+1;
INSERT INTO [DSB].[dbo].[TPADAA] VALUES('BM'+CAST(@m AS CHAR(6)),'部门'+CAST(@m AS CHAR(6)),'3',@m,'5','6','7','8','9','F','F','DS',GETDATE(),'DS',GETDATE(),'1','960','961','962','963','964','965','0','1','2','3','4','5')
end