Re: COPY from CSV, passing in default value?

From: adebarros <adebarros(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: COPY from CSV, passing in default value?
Date: 2012-05-17 01:35:28
Message-ID: 1337218528230-5708990.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi, Ben,

Thanks for the suggestion. I do realize I could create the default value for
the column; however, I probably should have specified that in this scenario
I would want to supply several different values for the county (or any other
missing field) during import. i.e., if I first imported a CSV with data for
Cumberland County and then later another CSV for Putnam County.

In any event, the solution from Francois does the trick.

Thanks again!

--
View this message in context: http://postgresql.1045698.n5.nabble.com/COPY-from-CSV-passing-in-default-value-tp5708672p5708990.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Armand Turpel 2012-05-17 03:52:05 Re: COPY from CSV, passing in default value?
Previous Message Ben Madin 2012-05-17 01:21:38 Re: COPY from CSV, passing in default value?