From: | "Andrej Ricnik-Bay" <andrej(dot)groups(at)gmail(dot)com> |
---|---|
To: | "Andrej Kastrin" <andrej(dot)kastrin(at)siol(dot)net> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Strange delimiters problem |
Date: | 2007-06-04 03:55:24 |
Message-ID: | b35603930706032055h3bb15ff4l4cf17ff3e8fea4ba@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 6/3/07, Andrej Kastrin <andrej(dot)kastrin(at)siol(dot)net> wrote:
> I am experiencing difficulty in trying to copy the file structure below
> into PostgreSQL table:
>
> ||001||,||Classification||,||Economics||,||N||
> ||001||,||Classification||,||Trends||,||Y||
> etc...
>
> Although I can preprocess the input file with e.g awk, I would like to
> know is it possible to do that directly in PostgreSQL.
>
> Thanks in advance for any suggestions.
I think you might be able to. You can have CSV with your pipes
(as QUOTE in [ CSV [ HEADER ] [ QUOTE [ AS ] 'quote' ] )
http://www.postgresql.org/docs/8.2/static/sql-copy.html
> Best, Andrej
Cheers,
Andrej
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2007-06-04 04:00:09 | Re: debugging C functions |
Previous Message | Islam Hegazy | 2007-06-04 03:09:04 | Re: debugging C functions |