Re: Using upper() / decode() together

Поиск
Список
Период
Сортировка
От Ross Gohlke
Тема Re: Using upper() / decode() together
Дата
Msg-id 50385.4.62.156.229.1109649248.squirrel@4.62.156.229
обсуждение исходный текст
Ответ на Re: Using upper() / decode() together  ("Sean Davis" <sdavis2@mail.nih.gov>)
Ответы Please help  (Kumar S <ps_postgres@yahoo.com>)
Список pgsql-novice
I get this error:

ERROR:  cannot cast type bytea to character varying

Any ideas?

> Does doing something like (untested):
>
> SELECT * from table where upper(decode(field,'base64')::varchar) like
upper('%sometext%');
>
> work for you?
>
> Sean
>

Ross Gohlke
ross at grinz dot com






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

Предыдущее
От: "Sean Davis"
Дата:
Сообщение: Re: Import csv file into multiple tables in Postgres
Следующее
От: "Todd Lewis"
Дата:
Сообщение: Re: Import csv file into multiple tables in Postgres