Skip to content

Instantly share code, notes, and snippets.

@felipemesquita
Created September 5, 2014 00:39
Show Gist options
  • Save felipemesquita/c5367def490478009f1a to your computer and use it in GitHub Desktop.
Save felipemesquita/c5367def490478009f1a to your computer and use it in GitHub Desktop.
declare
l_clob CLOB;
begin
for i in 1..20000 loop
l_clob := l_clob || 'A,B,C,D,E,F,G,H,I' || chr(13);
end loop;
l_clob := l_clob || 'A,B,C,D,E,F,G,H,I';
DELETE FROM bra.tmp_csv2;
DELETE FROM bra.tmp_csv;
COMMIT;
INSERT INTO bra.tmp_csv VALUES (l_clob);
COMMIT;
tmp_parse_csv(l_clob);
end;
/
SELECT *
FROM bra.tmp_csv2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment