Re: CSV Utility

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

 



Mike angelo wrote:
Is there a Postgres utility that allows data contained in a CSV file to be loaded into the database?

You mean like psql?

\copy tablename from csvfilename CSV

or with a header:
\copy tablename from csvfilename CSV HEADER

or an alternate delimiter:
\copy tablename from csvfilename CSV delimiter '|'

or export data (tab-delimited):
copy foo to stdout CSV DELIMITER E'\t';

Cheers,
Steve


--
Sent via pgsql-admin mailing list (pgsql-admin@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux