From: Christopher Sawtell <csawtell@paradise.net.nz>
To: guard <guard@ficnet.net>
To: pgsql-sql@postgresql.org
Subject: Re: to_char()?? Works for me.
Date: Tue, 16 Oct 2001 08:45:03 +1300
Message-ID: <20011015194504.A7DE9D21A5@deborah.paradise.net.nz> (raw)
In-Reply-To: <9qdfnh$1jte$1@news.tht.net>
References: <9qb2lj$13lv$1@news.tht.net>
<9qd0j0$1gc3$1@news.tht.net>
<9qdfnh$1jte$1@news.tht.net>
Works for me.
chris=# select substr('hi there', 3, 5)::varchar(5) as xx;
xx
-------
ther
(1 row)
chris=# select version();
version
-------------------------------------------------------------
PostgreSQL 7.1.2 on i686-pc-linux-gnu, compiled by GCC 2.96
(1 row)
On Mon, 15 Oct 2001 14:56, 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 ":"
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: csawtell@paradise.net.nz, guard@ficnet.net
Subject: Re: to_char()?? Works for me.
In-Reply-To: <20011015194504.A7DE9D21A5@deborah.paradise.net.nz>
References: <9qb2lj$13lv$1@news.tht.net> <9qd0j0$1gc3$1@news.tht.net> <9qdfnh$1jte$1@news.tht.net> <20011015194504.A7DE9D21A5@deborah.paradise.net.nz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox