From: | Jayadevan M <Jayadevan(dot)Maymala(at)ibsplc(dot)com> |
---|---|
To: | c b <charles(dot)blankenship(at)gmail(dot)com> |
Cc: | pgsql-novice(at)postgresql(dot)org, pgsql-novice-owner(at)postgresql(dot)org |
Subject: | Re: importing a data file without defining a table structure |
Date: | 2010-07-28 03:42:00 |
Message-ID: | OF157327DA.777741B9-ON6525776E.0014165B-6525776E.0014701E@ibsplc.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
Hello,
> typing out each column name and data type manually, and then edit the
> data file to remove the first row, and then copy the file into the
> table using COPY?)
You should be able to avoid editing the file to remove the first row. Try
HEADER option
http://www.postgresql.org/docs/8.4/static/sql-copy.html
For the difficult questions, let us wait for expert opinion.
Regards,
Jayadevan
DISCLAIMER:
"The information in this e-mail and any attachment is intended only for
the person to whom it is addressed and may contain confidential and/or
privileged material. If you have received this e-mail in error, kindly
contact the sender and destroy all copies of the original communication.
IBS makes no warranty, express or implied, nor guarantees the accuracy,
adequacy or completeness of the information contained in this email or any
attachment and is not liable for any errors, defects, omissions, viruses
or for resultant loss or damage, if any, direct or indirect."
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Wood | 2010-07-28 07:47:37 | Re: Select only active entries |
Previous Message | Donn Washburn | 2010-07-27 23:32:12 | Re: Select only active entries |