Collections:
Export Data with Field Delimiters in Oracle
How To Export Data with a Field Delimiter in Oracle?
✍: FYIcenter.com
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\test\fyi_links.txt; SQL> SELECT id ||','|| url ||','|| notes ||','|| counts ||','|| created FROM fyi_links; ...... SQL> SPOOL OFF;
You should see all records in fyi_links.txt with ',' delimited fields as shown here:
101,fyicenter.com,Session 1,,17-MAY-06 110,centerfyi.com,Session 1,,17-MAY-06
⇒ What Is SQL*Loader in Oracle
⇐ Quickest Way to Export Data to a Flat File in Oracle
2018-06-27, 2462🔥, 0💬
Popular Posts:
How To Get Year, Month and Day Out of DATETIME Values in SQL Server Transact-SQL? You can use DATEPA...
Why I Can Not Enter 0.001 Second in DATETIME values in SQL Server Transact-SQL? If you enter millise...
Is SQL Server Transact-SQL case sensitive? No. Transact-SQL is not case sensitive. Like the standard...
How To Insert New Line Characters into Strings in SQL Server Transact-SQL? If you want to break a st...
Where to find answers to frequently asked questions on Downloading and Installing SQL Server 2005 Ex...