Re: importing a data file without defining a table structure

Поиск
Список
Период
Сортировка
От Jayadevan M
Тема Re: importing a data file without defining a table structure
Дата
Msg-id OF157327DA.777741B9-ON6525776E.0014165B-6525776E.0014701E@ibsplc.com
обсуждение исходный текст
Ответ на importing a data file without defining a table structure  (c b <charles.blankenship@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Donn Washburn
Дата:
Сообщение: Re: Select only active entries
Следующее
От: Michael Wood
Дата:
Сообщение: Re: Select only active entries