PLEASE HELP ME!: binary data in text/varchar?

Поиск
Список
Период
Сортировка
От Swaminathan Natarajan
Тема PLEASE HELP ME!: binary data in text/varchar?
Дата
Msg-id Pine.LNX.4.10.10103291507290.31529-100000@mickey.dcs.uky.edu
обсуждение исходный текст
Ответ на ORDER BY and ignoring the , a , and an  ("Stoppel, Brett W" <bstoppel@ku.edu>)
Список pgsql-general
Hi there!

I am using pgsql 7.0/ecpg C interface on Redhat 6.1.
Is it possible to store and retrieve fixed length binary data (<100bytes
in length) in text or varchar (or any other data type)? Using ecpg, I want
to "memcpy" from my local variable to a field in the table and back.
Postgresql seems to do a "strcpy" instead. If someone can help me, I
would greatly appreciate it! I checked the archives and examples but found
no relevant articles.

THANKS!!!
Swami.



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: missing data
Следующее
От: Dave Perkins
Дата:
Сообщение: Re: missing data