Re: Binary data in bytea field

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: Binary data in bytea field
Дата
Msg-id 3C9D0F4A.5050101@joeconway.com
обсуждение исходный текст
Ответ на Binary data in bytea field  (Iklódi Lajos <il@mithrandir.hu>)
Список pgsql-sql
Iklódi Lajos wrote:
>>Iklódi Lajos wrote:
>>
>>>I have a table with field of tyte bytea. I'm reading this table with C,
>>>libpq.
>>>The result is a string, with octal groups, like '\200'.
>>>Is it possible to get data as it is, every byte in one byte?
>>>Thanks
>>>
>>
>>Sure -- just use a binary cursor.
>>
>>HTH,
>>
>>Joe
> 
> 
> Thanks, really it is in docs.
> How can I make binary updates?
> 
> Lajos
> 

See:
http://www.us.postgresql.org/users-lounge/docs/7.2/postgres/libpq-exec.html
section 1.3.3 "Escaping binary strings for inclusion in SQL queries".

Joe



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

Предыдущее
От: Iklódi Lajos
Дата:
Сообщение: Re: Binary data in bytea field
Следующее
От: "jack"
Дата:
Сообщение: About temporary table