Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f9G15XP94459 for ; Mon, 15 Oct 2001 21:05:38 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.4/8.11.4) id f9G0grp74705 for pgsql-sql@postgresql.org; Mon, 15 Oct 2001 20:42:53 -0400 (EDT) (envelope-from news) From: missive@frontiernet.net (Lee Harr) X-Newsgroups: comp.databases.postgresql.sql Subject: Re: to_char()?? Date: Tue, 16 Oct 2001 00:42:52 +0000 (UTC) Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 17 Message-ID: <9qfvqb$28mv$1@news.tht.net> References: <9qb2lj$13lv$1@news.tht.net> <9qd0j0$1gc3$1@news.tht.net> <9qdfnh$1jte$1@news.tht.net> Reply-To: missive@hotmail.com X-Complaints-To: scrappy@hub.org User-Agent: slrn/0.9.7.0 (FreeBSD) To: pgsql-sql@postgresql.org X-Archive-Number: 200110/211 X-Sequence-Number: 5166 On Mon, 15 Oct 2001 09:56:26 +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 ":" > Works for me on 7.1.2 and pre-7.2 What version are you using? select version(); That still leaves it unclear in my mind what exactly you want from your query.