I would like to write PL/SQL generator of dummy data (e.g. names as combination of first and last most popular names) for Oracle 12c.
So I need to populate names and surnames tables with source data first.
I cannot use sqlldr and all I have access to is SQL*Plus and SQLDeveloper.
I can populate my source tables with lots of individual insert statements like:
INSERT INTO names(id, name) VALUES(1, 'Oliver');
INSERT INTO names(id, name) VALUES(2, 'Jack');
⋮
INSERT INTO names(id, name) VALUES(50, 'Aaron');
I wonder whether there are any other (perhaps more elegant) options.
Edit:
I was hitting another issue coming from a fact that value of generated identity column is not incremented during INSERT ALL
. There is a nice workaround described in this related answer at SO.