How to cast VARCHAR to BYTEA and vice-versa?

Поиск
Список
Период
Сортировка
От Moran.Michael
Тема How to cast VARCHAR to BYTEA and vice-versa?
Дата
Msg-id B27C8914860EE24E865D189A3735EA5310091D@lasexch03.is.ad.igt.com
обсуждение исходный текст
Ответы Re: How to cast VARCHAR to BYTEA and vice-versa?  (Ragnar Hafstað <gnari@simnet.is>)
Список pgsql-sql
Hello all,
I have a table with a VARCHAR column that I need to convert to a BYTEA.
How do I cast VARCHAR to BYTEA?
The following doesn't seem to work as it yields the 'cannot cast varchar to
bytea' error message:   varchar_data::bytea
On the same topic, how do I do the reverse, that is, how to I cast from
BYTEA back to VARCHAR?
Thanks,
-Michael Moran


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

Предыдущее
От: Jeff Hoffmann
Дата:
Сообщение: finding schema of table that called a trigger
Следующее
От: Bernard Grosperrin
Дата:
Сообщение: Newbie wonder...