Oracle 批量插入数据怎么做
1个回答
展开全部
存储过程批量插入
create proc s
as
declare @i int
declare @id int
declare @q int
declare @name nvarchar(50);
declare @sql nvarchar(800);
set @i=0
while(@i<10)
begin
select @id=id,@name=name from test3 where id=1;
insert into test4 values(@id,@name);
set @i=@i+1
end
exec s
create proc s
as
declare @i int
declare @id int
declare @q int
declare @name nvarchar(50);
declare @sql nvarchar(800);
set @i=0
while(@i<10)
begin
select @id=id,@name=name from test3 where id=1;
insert into test4 values(@id,@name);
set @i=@i+1
end
exec s
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询