which approach is do better performance do bulk insert by using insert from select or Cursor for loop ?
for example :
[code]
DECLARE
CURSOR Test_C IS SELECT * FROM test_table1;
BEGIN
FOR Test_C_REC IN Test_C LOOP
INSERT INTO test_table2(col1,
col2,
col3)
VALUES (Test_C.col1,
Test_C.col2,
Test_C.col3);
END LOOP;
END;
[/code]
or a simple select, like:
[code]
INSERT INTO test_table2(col1,
col2,
col3)
(SELECT col1,
col2,
col3
FROM test_table1);
[/code]
thanks in advance