Re: [GENERAL] create a script which imports csv data

2012-06-28 Thread Craig Ringer
On 06/28/2012 07:53 PM, Robert Buckley wrote: Hi, I have to create a script which imports csv data into postgresql ...and have a few questions about the best way to do it. The advice already given is pretty good. Remember you can always create a clean new table then INSERT INTO ... SELECT to

Re: [GENERAL] create a script which imports csv data

2012-06-28 Thread Arjen Nienhuis
On Thu, Jun 28, 2012 at 2:12 PM, Berend Tober wrote: > Robert Buckley wrote: >> >> I have to create a script which imports csv data into postgresql >> The csv data is automatically created from an external database >> so I have no influence over which columns etc are downloaded. >> >> How can I be

Re: [GENERAL] create a script which imports csv data

2012-06-28 Thread Berend Tober
Robert Buckley wrote: I have to create a script which imports csv data into postgresql The csv data is automatically created from an external database so I have no influence over which columns etc are downloaded. How can I best create a table for the import? This is what I do: 1) I have a ta

Re: [GENERAL] create a script which imports csv data

2012-06-28 Thread Marc Mamin
> > > From: pgsql-general-ow...@postgresql.org On Behalf Of Robert Buckley > Sent: Donnerstag, 28. Juni 2012 13:53 > To: pgsql-general@postgresql.org > Subject: [GENERAL] create a script which imports csv data > > Hi, > > I have to create a script which imports csv data into postgresql ...and

Re: [GENERAL] create a script which imports csv data

2012-06-28 Thread Raymond O'Donnell
On 28/06/2012 12:53, Robert Buckley wrote: > Hi, > > I have to create a script which imports csv data into postgresql ...and > have a few questions about the best way to do it. > > The csv data is automatically created from an external database so I > have no influence over which columns etc are