[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Exporting data from oracle 9i to a csv file and filename based on column data

Asked by silterra in PL / SQL, Oracle Database, HP-UX Unix

Tags: Oracle, CSV, PL/SQL

We try to generate csv file from table: V_SR01_LAYER_REV which have:
select SPECFILE ||','|| SPEC_REV ||','|| CUSTOMER_DEVICE || ',' || CHIP_CODE ||',' || LAYER_NO ||',' || SCANNER_FILE || ',' || REV || ','|| TOOL || ',' || BARCODE ||',' || XXX_MASK_VISINSP || ',' || PRIME_DIE_REV || ',' || CREATE_DATE || ',' || FIELD_LOCATION from V_SR01_LAYER_REV

We need to generat csv file base on CHIP_CODE.
Below show the example:
select * from V_SR01_LAYER_REV where CHIP_CODE = '12B3';

All the output will be keep in the filename: 12B2.csv as csv format.

The real problem now, this table have Output: 819 chip code;
select count(DISTINCT CHIP_CODE) from V_SR01_LAYER_REV order by CHIP_CODE;

How can we write the script generate it weekly?
[+][-]10/15/09 01:18 AM, ID: 25578368Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/15/09 01:26 AM, ID: 25578422Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/15/09 01:34 AM, ID: 25578468Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/15/09 01:38 AM, ID: 25578486Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/15/09 01:48 AM, ID: 25578544Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/15/09 08:31 PM, ID: 25586870Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625