いくつかの方法で実行できます ( SQL Fiddle with Demoを参照)。
INSERT ALL
INTO J (A) VALUES (1)
INTO J (A) VALUES (2)
INTO J (A) VALUES (3)
INTO J (A) VALUES (4)
INTO J (A) VALUES (5)
INTO J (A) VALUES (6)
INTO J (A) VALUES (7)
INTO J (A) VALUES (8)
SELECT * FROM dual
;
または ( SQL Fiddle With Demoを参照):
INSERT INTO J (A)
select (1) from dual union all
select (2) from dual union all
select (3) from dual union all
select (4) from dual union all
select (5) from dual union all
select (6) from dual union all
select (7) from dual union all
select (8) from dual union all
select (9) from dual union all
select (10) from dual
またはINSERT
、それぞれに別のステートメントを使用することもできます。
INSERT INTO J (A) VALUES (1);
INSERT INTO J (A) VALUES (2);
INSERT INTO J (A) VALUES (3);
INSERT INTO J (A) VALUES (4);
INSERT INTO J (A) VALUES (5);
INSERT INTO J (A) VALUES (6);