Re: importing a data file without defining a table structure - Mailing list pgsql-novice

From Jayadevan M
Subject Re: importing a data file without defining a table structure
Date
Msg-id OF157327DA.777741B9-ON6525776E.0014165B-6525776E.0014701E@ibsplc.com
Whole thread Raw
In response to importing a data file without defining a table structure  (c b <charles.blankenship@gmail.com>)
List 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."






pgsql-novice by date:

Previous
From: Donn Washburn
Date:
Subject: Re: Select only active entries
Next
From: Michael Wood
Date:
Subject: Re: Select only active entries