Re: [GENERAL] Copy from text file

2006-06-22 Thread Rich Shepard
On Thu, 22 Jun 2006, Ron Johnson wrote: Assuming you're on a Unix box, you could easily use awk or perl to parse your csv and create one that contains only the columns you want. And probably pipe the results directly into the copy command, bypassing any intermediary steps. Well, why not us

Re: [GENERAL] Copy from text file

2006-06-22 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Geoffrey wrote: > Chris wrote: >> Ricardo Vaz wrote: >>> Hi, >>> >>> >>> It is possible to copy data from text file (CSV) ignoring >>> some columns of this text file? > > Assuming you're on a Unix box, you could easily use awk or perl > to parse you

Re: [GENERAL] Copy from text file

2006-06-22 Thread Geoffrey
Chris wrote: Ricardo Vaz wrote: Hi, It is possible to copy data from text file (CSV) ignoring some columns of this text file? Assuming you're on a Unix box, you could easily use awk or perl to parse your csv and create one that contains only the columns you want. -- Until later, Geoffrey

Re: [GENERAL] Copy from text file

2006-06-22 Thread Chris
Ricardo Vaz wrote: Hi, It is possible to copy data from text file (CSV) ignoring some columns of this text file? (How come this was posted 3 times?) I don't think so but you could load it into a temporary table and then: insert into new_table select col1, col2 from temp_table; -- Postgre

[GENERAL] Copy from text file

2006-06-22 Thread Ricardo Vaz
Hi, It is possible to copy data from text file (CSV) ignoring some columns of this text file? Thanks, Ricardo Vaz Tribunal de Contas do Estado de São Paulo Diretoria de Tecnologia Rua Venceslau Brás, 183 - 2º andar (11) 3292-3266 ramal 3640 [EMAIL PROTECTED] -- Esta mensagem foi verificada

[GENERAL] Copy from text file

2006-06-22 Thread Ricardo Vaz
Hi, It is possible to copy data from text file (CSV) ignoring some columns of this text file? Thanks, Ricardo Vaz Tribunal de Contas do Estado de São Paulo Diretoria de Tecnologia [EMAIL PROTECTED] -- Esta mensagem foi verificada pelo sistema de antivírus e acredita-se estar livre de per

[GENERAL] Copy from text file

2006-06-22 Thread Ricardo Vaz
Hi, It is possible to copy data from text file (CSV) ignoring some columns of this text file? Thanks, Ricardo Vaz Tribunal de Contas do Estado de São Paulo Diretoria de Tecnologia Rua Venceslau Brás, 183 - 2º andar (11) 3292-3266 ramal 3640 [EMAIL PROTECTED] -- Esta mensagem foi verificada p