Re: to_char()??

Поиск
Список
Период
Сортировка
От Szabo Zoltan
Тема Re: to_char()??
Дата
Msg-id 3BCAED1C.3090306@mportal.hu
обсуждение исходный текст
Ответ на to_char()??  ("guard" <guard@ficnet.net>)
Список pgsql-sql
Try: ::text

CoL

guard wrote:

> thanks
> 
> I have run "select substr('hi there', 3, 5)::varchar(5) as xx;"
> but get error message
> Error: ERROR:  parser: parse error at or near ":"
> 
> --
> 
> "Lee Harr" <missive@frontiernet.net> ¼¶¼g©ó¶l¥ó·s»D
> :9qd0j0$1gc3$1@news.tht.net...
> 
>>>how to
>>>select substr('hi there',3,5) as xx   -->>  xx change char type
>>>
>>>
>>How about:
>>
>>select substr('hi there', 3, 5)::varchar(5) as xx;
>>
>>or is this not what you mean?
>>
>>
> 
> 



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

Предыдущее
От: missive@frontiernet.net (Lee Harr)
Дата:
Сообщение: Re: to_char()??
Следующее
От: "Frank Zhu"
Дата:
Сообщение: Re: VARCHAR vs TEXT