Answers

Question and Answer:

  Home  Oracle Database

⟩ How To Export Data with a Field Delimiter?

The previous exercise allows you to export data with fixed field lengths. If you want export data with variable field lengths and field delimiters, you can concatenate your fields with an expression in the SELECT clause as shown in the tutorial exercise bellow:

SQL> SET HEADING OFF;

SQL> SET FEEDBACK OFF;

SQL> SET LINESIZE 1000;

SQL> SPOOL oraclexe estggl_links.txt;

SQL> SELECT id ||','|| url ||','|| notes ||','|| counts

||','|| created FROM ggl_links;

......

SQL> SPOOL OFF;

You should see all records in ggl_links.txt with ',' delimited fields as shown here:

101,rendc.org,Session 1,,17-MAY-06

110,rendc.org,Session 1,,17-MAY-06

 173 views

More Questions for you: