pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ross J. Reedstrom <reedstrm@rice.edu>
To: pgsql-sql@postgresql.org
Subject: Re: to_char()??
Date: Mon, 15 Oct 2001 19:34:16 -0500
Message-ID: <20011015193416.A5256@rice.edu> (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>

On Mon, Oct 15, 2001 at 09:56:26AM +0800, 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 ":"

Upgrade your version of PostgreSQL:

test=# select substr('hi there', 3, 5)::varchar(5) as xx;
  xx   
-------
  ther
(1 row)

test=# select version();
                            version                            
---------------------------------------------------------------
 PostgreSQL 7.1.2 on i686-pc-linux-gnu, compiled by GCC 2.95.4
(1 row)

test=# 

Ross
-- 
Ross Reedstrom, Ph.D.                                 reedstrm@rice.edu
Executive Director                                  phone: 713-348-6166
Gulf Coast Consortium for Bioinformatics              fax: 713-348-6182
Rice University MS-39
Houston, TX 77005



view thread (6+ messages)  latest in thread

Message-ID: <20011015193416.A5256@rice.edu>
Permalink:  ../20011015193416.A5256@rice.edu/
Also on:    postgresql.org/message-id/20011015193416.A5256@rice.edu

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: reedstrm@rice.edu
  Subject: Re: to_char()??
  In-Reply-To: <20011015193416.A5256@rice.edu>

* 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