Re: Cast Problem - varchar() problem

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Cast Problem - varchar() problem
Дата
Msg-id 23694.1123796944@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Cast Problem - varchar() problem  (<operationsengineer1@yahoo.com>)
Список pgsql-novice
<operationsengineer1@yahoo.com> writes:
> my apologies again.  datatype was text in 7.4 and
> varchar in 7.3...  the database likely isn't the
> cause, rather, my different datatypes is probably the
> problem.

You could do
    ORDER BY varcharcolumn::text::integer;

Experimenting, it looks like 8.0 will allow the direct cast but 7.4 and
7.3 not.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Forcing WAL switch
Следующее
От: "Walker, Jed S"
Дата:
Сообщение: Re: Forcing WAL switch