[Quote=引用 7 楼 xocom 的回复:]
引用 2 楼 maco_wang 的回复:
SQL code
declare @nn int
while @nn <3
begin
insert into table1 (col1 ,col2 ,col3 ,time)
select col1 ,col2 ,col3,@nn from table1 where time=1;
set @nn=@nn+1;
end
[/Quote]
[Quote=引用 2 楼 maco_wang 的回复:]
SQL code
declare @nn int
while @nn<3
begin
insert into table1 (col1 ,col2 ,col3 ,time)
select col1 ,col2 ,col3,@nn from table1 where time=1;
set @nn=@nn+1;
end
[/Quote]