How To Export Data with a Field Delimiter?
Submitted by: AdministratorThe 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,globalguideline.com,Session 1,,17-MAY-06
110,globalguideline.com,Session 1,,17-MAY-06
Submitted by: Administrator
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,globalguideline.com,Session 1,,17-MAY-06
110,globalguideline.com,Session 1,,17-MAY-06
Submitted by: Administrator
Read Online Oracle Database Job Interview Questions And Answers
Top Oracle Database Questions
☺ | How To Shutdown Your 10g XE Server? |
☺ | How To Use "OUT" Parameter Properly? |
☺ | How Run SQL*Plus Commands That Are Stored in a Local File? |
☺ | What Is the Relation of a User Account and a Schema? |
☺ | How To Recover a Dropped Table in Oracle? |
Top DB Oracle Categories
☺ | Oracle PL-SQL Interview Questions. |
☺ | Oracle DBA Interview Questions. |
☺ | Oracle D2K Interview Questions. |
☺ | OCI Interview Questions. |
☺ | Oracle RMAN Interview Questions. |