How to remove quotes from COPY TO result?

Поиск
Список
Период
Сортировка
От Michael Rowan
Тема How to remove quotes from COPY TO result?
Дата
Msg-id E10B9D5E-90CF-49D3-9C48-36CD9DD59F68@internode.on.net
обсуждение исходный текст
Ответы Re: How to remove quotes from COPY TO result?  (Joe Conway <mail@joeconway.com>)
Список pgsql-novice
PostgreSQL 8.4.1

I have a table "abbreviation" created as follows:

id serial NOT NULL,
full_name character varying(16),
short_name character varying(16),

I import some data from a tab delimited text file like so:

1    "STREET"        "ST"
2    "ROAD"             "RD"

using COPY abbreviation FROM <<myfile>>

The data is imported but I want the character columns to be stripped of the enclosing double-quotes and they are not.
Whatdo I have to do?   

TIA

Michael Rowan
mike.rowan@internode.on.net

11 Kingscote Street
ALBERTON
South Australia 5014

tel 618 8240 3993




В списке pgsql-novice по дате отправления:

Предыдущее
От: Steve Crawford
Дата:
Сообщение: Re: Need help doing a CSV import
Следующее
От: Joe Conway
Дата:
Сообщение: Re: How to remove quotes from COPY TO result?