Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f9EM5Cr16975 for ; Sun, 14 Oct 2001 18:05:12 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.4/8.11.4) id f9ELbaa49649 for pgsql-sql@postgresql.org; Sun, 14 Oct 2001 17:37:36 -0400 (EDT) (envelope-from news) From: missive@frontiernet.net (Lee Harr) X-Newsgroups: comp.databases.postgresql.sql Subject: Re: to_char()?? Date: Sun, 14 Oct 2001 21:37:36 +0000 (UTC) Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 11 Message-ID: <9qd0j0$1gc3$1@news.tht.net> References: <9qb2lj$13lv$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/187 X-Sequence-Number: 5142 > > 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?