Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: oracle table to flat file?
Joel Garry wrote:
> "Howard J. Rogers" <hjr_at_dizwell.com> wrote in message news:<411020f1$0$25458$afc38c87_at_news.optusnet.com.au>...
>
>>"Chris" <cs123._no_spam__at_telstra.com> wrote in message >>news:zfTPc.31685$K53.7730_at_news-server.bigpond.net.au... >> >>
>> >>>>that you'll embedd trailing spaces into your data. >>>> >>>>Regards >>>>HJR >>>>
Here's a challenge: convert any table (common relational data types, excluding the more exotic ones such as RAW, LONG, xLOB, BFILE, ROWID, haven't tried TIMESTAMP) from Oracle into a CSV file that can, in turn, be imported into MS Access without error (including commas, newlines (Un*x or Windows style), quotes, punctuation, whatever the Oracle 9i and MS Access charset supports for my locale).
I know it can be done using Perl DBI and other Perl modules (slightly off-topic), but it works for what I think is a high percentage of real-world data.
Bold claim: I don't think it's possible to code a SQL*Plus query that will correctly handle any VARCHAR2(4000) data with the above mentioned border test cases and convert it into a CSV file that MS Access (or Excel, for that matter) can read wihtout error.
Don't neglect byte length semantics vs. character semantics.
--Mark Bole Received on Thu Aug 05 2004 - 21:10:29 CDT
![]() |
![]() |