Interview Questions Answers.ORG
Interviewer And Interviewee Guide
Interviews
Quizzes
Home
Quizzes
Interviews DB Oracle Interviews:Concepts and ArchitectureData AccessDatabase ArchitectureDatabase ManagementDatabase Security OracleDistributed ProcessingFlexfieldForms ReportsGeneral OracleMemory ManagementMTO-SAP Financial AccountingOCIOracle AOLOracle AROracle Backup RecoveryOracle D2KOracle DatabaseOracle Database DeveloperOracle DB OptimizationOracle DBAOracle DeveloperOracle ETLOracle Forms 3.0Oracle Forms 4.0Oracle GLOracle PL-SQLOracle RMANOracle ScenariosOracle SecurityOracle SQLOracle System ArchitectureOracle Technology Network (OTN)Programmatic ConstructsRAC (Real Application Clusters)SQL Plus
Copyright © 2018. All Rights Reserved
Oracle Database Interview Question:
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
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.
https://InterviewQuestionsAnswers.ORG.