Search Postgresql Archives

Re: How to import a CSV file (originally from Excel)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > \copy "Flight Traffic" from yourfile.csv delimiter as ',' 
> csv quote as 
> > '"'
> > 
> > (might need some adaption, of course)
> > 
> > 
> > Loading 45,000 lines is trivial for copy, it shouldn't take 
> noticable 
> > time at all.
> ----
> along these lines - can I do something similar (CSV file) but 
> 'update' 2 or 3 columns?

I'd use COPY to a temp table, then run a normal UPDATE on that.

//Magnus


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux