Re: [GENERAL] Strange delimiters problem

2007-06-03 Thread Andrej Ricnik-Bay
On 6/3/07, Andrej Kastrin <[EMAIL PROTECTED]> 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.

Re: [GENERAL] Strange delimiters problem

2007-06-03 Thread Andrej Kastrin
hubert depesz lubaczewski wrote: On 6/3/07, *Andrej Kastrin* <[EMAIL PROTECTED] > wrote: ||001||,||Classification||,||Economics||,||N|| ||001||,||Classification||,||Trends||,||Y|| etc... it looks like you should be able to read it using COPY command. some

Re: [GENERAL] Strange delimiters problem

2007-06-03 Thread hubert depesz lubaczewski
On 6/3/07, Andrej Kastrin <[EMAIL PROTECTED]> wrote: ||001||,||Classification||,||Economics||,||N|| ||001||,||Classification||,||Trends||,||Y|| etc... it looks like you should be able to read it using COPY command. something like: copy some_table from stdin with delimiter ',' csv quote '||';