oracle
DECLARE
i INT;
BEGIN
i := 0;
WHILE(i < 300000)
LOOP
i := i + 1;
INSERT INTO yw_bdzh(bdzh, schoolcode) values(10337112137,10337);
END LOOP;
COMMIT;
END;
SQl
declare @i int
set @i=1
while @i<=300000
begin
insert yw_bdzh(bdzh,schoolcode) values(10337112137,10337)
set @i=@i+1
end
DECLARE
i INT;
BEGIN
i := 0;
WHILE(i < 300000)
LOOP
i := i + 1;
INSERT INTO yw_bdzh(bdzh, schoolcode) values(10337112137,10337);
END LOOP;
COMMIT;
END;
SQl
declare @i int
set @i=1
while @i<=300000
begin
insert yw_bdzh(bdzh,schoolcode) values(10337112137,10337)
set @i=@i+1
end