Re: Char to Int

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Char to Int
Дата
Msg-id Pine.LNX.4.44.0310142354460.22628-100000@peter.localdomain
обсуждение исходный текст
Ответ на Re: Char to Int  ("Rick Seeger" <rick@nettheory.com>)
Ответы Re: Char to Int
Список pgsql-general
Rick Seeger writes:

> Oops, there was a typo in my second example. Still have the problem
> tho...
>
> > rs=#
> > rs=# insert into table2
> > rs=# select CAST(my_Id as integer)
> >             ^^^^
> > rs=# from table1;
> > ERROR:  Cannot cast type character to integer

Try the function to_number().

--
Peter Eisentraut   peter_e@gmx.net


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

Предыдущее
От: Ron Johnson
Дата:
Сообщение: Re: Char to Int
Следующее
От: "Rick Seeger"
Дата:
Сообщение: Re: Char to Int