I\'d like to generate insert-strings for a row in my Oracle database including all its dependent rows in other tables (and their dependent rows).
Example:
I just use plain old SQL to do these tasks - use the select statements to generate your inserts:
set pagesize 0
set verify off
SELECT 'INSERT INTO a(a_id, name) VALUES ('
|| a_id || ', '
|| '''' || name || ''');'
FROM a
WHERE a_id = &&1;
SELECT 'INSERT INTO b(b_id, a_id) VALUES ('
|| b_id || ', '
|| a_id || ');'
FROM b
WHERE a_id = &&1;