Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: [ADMIN] How to import CSV file?

From: Jeff Frost <jeff(at)frostconsultingllc.com>
Date: Tue Aug 28 2007 - 14:11:16 EDT


On Tue, 28 Aug 2007, Chris Hoover wrote:

> Why go through all of this when COPY can handle this for you? All I need to
> know is the syntax to tell copy that the strings are quoted by a single
> quote.

Check out the docs here:

http://www.postgresql.org/docs/8.1/interactive/sql-copy.html

Probably you want to try something like:

COPY foo FROM '/tmp/foo' WITH CSV QUOTE AS '\'';

-- 
Jeff Frost, Owner 	
Frost Consulting, LLC 	
http://www.frostconsultingllc.com/
Phone: 650-780-7908	FAX: 650-649-1954

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

               
http://www.postgresql.org/docs/faq
Received on Tue Aug 28 14:15:08 2007

This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 12:14:46 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library