Question : How do I generate CSV files in Oracle ?

I need to generate CSV Files with double-quotes so that any embedded commas (in addresses, for example) don't cause problems.

I am using Oracle'#s SQL Developer but their Export option generates INSERT Statements.

I can't find an easy way to do it but I hate the idea of writing specific SQL for each field in 20 tables.

I am sure there must some way to do ti - maybe I should be looking for a commercial product ?

Right now, my favoured option is to use Access with an ODBC link to the Oracle Database.
From Access I can easily generate CSV files ( although I am not sure I can have double-quotes).

I would appreciate any suggestions.

Thanks very much.

Barry
 

Answer : How do I generate CSV files in Oracle ?

If you are using Oracle SQL Developer the you can create an CSV by
clicking right mouse button on desired table -> choosing export data -> csv

There are no inserts, the output looks like this:
"TEXT_LEGENDA2","CISLO_RIADKU"
" 025       Penzióny spolu","25"
" 035           Minikempy **** až **","35"
" 018         Kongresové hotely ***** až ***","18"
" 007       Hotely (motely,botely) spolu","7"
" 034           Kempingy *","34"
" 015         Hotely (motely) *","15"
" 012         Hotely ***** a Hotely (motely) ****","12"
" 036           Táboriská","36"
" 029       1.5. Ostatné hromadné ubytovanie","29"
" 031         Kempingy (minikempy), táboriská spolu","31"
" 019         Welnes hotely ***** až ***","19"
" 005    1.1. Hotely (motely,botely) a penzióny","5"
" 024         Botely spolu","24"
" 037         Ostatné","37"
" 014         Hotely (motely) **","14"
" 017         Horské hotely *** až *","17"
" 009         Hotely ***** a Hotely (motely) ****","9"
" 001   Ubytovacie zariadenia spolu","1"
" 038       2. Ubytovanie v súkromí spolu","38"
" 041         Súkromné objekty *** až *","41"
" 011           Hotely *****","11"
" 021         Boutique hotely ***** až ****","21"
" 020         Kúpelné hotely ***** až ***","20"
" 003   1. Hromadné ubytovacie zariadenia spolu","3"
" 040         Izby v súkromnom objekte *** až *","40"
" 028       1.4. Chatové osady","28"
" 023         Motely spolu","23"
" 033           Kempingy **** až **","33"
" 042         Prázdninový byt *** až *","42"
" 026       1.2. Apartmánové domy","26"
" 022         Apartmánové hotely *** až *","22"
" 027       1.3. Turistické ubytovne","27"
" 013         Hotely (motely) ***","13"
Random Solutions  
 
programming4us programming4us