Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: How to extract data from existing table to csv file.
Mujeeb,
Try this one. A little old, but might give you some ideas. It will export based on the ASCII character code you give it. hth. jack
REM
,'DATE', ') || chr(&3) || ' ,'CHAR' , ',chr(&3),chr(126) )) || chr(&3) ||' ,'VARCHAR2', ',chr(&3),chr(126) )) || chr(&3) ||' ,' || chr(&3) || ' )
prompt Now exporting table: owner = &1 prompt table name = &2 , prompt delimited byASCII(&3)
> > Hi All, > > Could anyone tell me how to get data from existing > table as a csv file using > sql*plus. Appreciate any suggestions. > Thanks > Mujeeb Chowdhry > > -- > Please see the official ORACLE-L FAQ: > http://www.orafaq.com > -- > Author: Mujeeb Chowdhry > INET: mujeeb.chowdhry_at_nara.gov > > Fat City Network Services -- (858) 538-5051 FAX: > (858) 538-5051 > San Diego, California -- Public Internet > access / Mailing Lists > -------------------------------------------------------------------- > To REMOVE yourself from this mailing list, send an > E-Mail message > to: ListGuru_at_fatcity.com (note EXACT spelling of > 'ListGuru') and in > the message BODY, include a line containing: UNSUB > ORACLE-L > (or the name of mailing list you want to be removed > from). You may > also send the HELP command for other information > (like subscribing). > -- > Please see the official ORACLE-L FAQ: > http://www.orafaq.com > -- > Author: Suhen Pather > INET: Suhen.Pather_at_strandbags.com.au > > Fat City Network Services -- (858) 538-5051 FAX: > (858) 538-5051 > San Diego, California -- Public Internet> access / Mailing Lists
> To REMOVE yourself from this mailing list, send an > E-Mail message > to: ListGuru_at_fatcity.com (note EXACT spelling of > 'ListGuru') and in > the message BODY, include a line containing: UNSUB > ORACLE-L > (or the name of mailing list you want to be removed > from). You may > also send the HELP command for other information > (like subscribing). __________________________________________________Do You Yahoo!?
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Jack Silvey INET: jack_silvey_at_yahoo.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Mon Jun 17 2002 - 21:28:18 CDT