Re: org.postgresql.util.PSQLException: ERROR: operator does not exist: character varying = integer

Поиск
Список
Период
Сортировка
От Richard Broersma
Тема Re: org.postgresql.util.PSQLException: ERROR: operator does not exist: character varying = integer
Дата
Msg-id 396486430906170756n3c8698fbm3951c0029dc673f1@mail.gmail.com
обсуждение исходный текст
Ответ на org.postgresql.util.PSQLException: ERROR: operator does not exist: character varying = integer  (Ashish Jain <ashjain2@gmail.com>)
Ответы Re: org.postgresql.util.PSQLException: ERROR: operator does not exist: character varying = integer
Список pgsql-jdbc
On Wed, Jun 17, 2009 at 6:35 AM, Ashish Jain<ashjain2@gmail.com> wrote:

> Can any one help me to write a cast statement which automatically cast
> integer to character??

The SQL standard way would be:  CAST( your_int_column AS TEXT )
or the Postgresql way:  your_int_column::TEXT


--
Regards,
Richard Broersma Jr.

Visit the Los Angeles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/lapug

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

Предыдущее
От: Ashish Jain
Дата:
Сообщение: org.postgresql.util.PSQLException: ERROR: operator does not exist: character varying = integer
Следующее
От: Ashish Jain
Дата:
Сообщение: Re: org.postgresql.util.PSQLException: ERROR: operator does not exist: character varying = integer