Re: using copy to load odd characters

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: using copy to load odd characters
Дата
Msg-id Pine.LNX.4.44.0310071215350.20152-100000@peter.localdomain
обсуждение исходный текст
Ответ на using copy to load odd characters  ("Johnson, Shaunn" <SJohnson6@bcbsm.com>)
Список pgsql-general
Johnson, Shaunn writes:

> I'm trying to load data from a text file that
> has an odd character in it (^@).  From what I
> could tell, it's a NULL character.  How can I
> load that into the database via the command line?

Depends on what data type the column is supposed to have.  Character data
types cannot contain null bytes.  The type bytea can store arbitrary
binary data.  It requires you to escape null bytes so '\\000'.

--
Peter Eisentraut   peter_e@gmx.net


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

Предыдущее
От: Kaare Rasmussen
Дата:
Сообщение: Re: PostgreSQL Beta4 Tag'd and Bundle'd ...
Следующее
От: Tom Lane
Дата:
Сообщение: Re: concenation of strings and null values