Re: to_char()?? - Mailing list pgsql-sql

From guard
Subject Re: to_char()??
Date
Msg-id 9qdfnh$1jte$1@news.tht.net
Whole thread Raw
In response to to_char()??  ("guard" <guard@ficnet.net>)
Responses Re: to_char()??  ("Ross J. Reedstrom" <reedstrm@rice.edu>)
Re: to_char()?? Works for me.  (Christopher Sawtell <csawtell@paradise.net.nz>)
List pgsql-sql
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 by date:

Previous
From: "guard"
Date:
Subject: to_char()??
Next
From: "Aasmund Midttun Godal"
Date:
Subject: Re: Indexes