Received: from hub.org.org (localhost [127.0.0.1]) by hub.org (8.10.1/8.11.0) with SMTP id e9JDOwn14771 for ; Thu, 19 Oct 2000 09:24:58 -0400 (EDT) (envelope-from pgsql-sql-owner@hub.org) Received: from rage.hub.org (nat194.45.mpoweredpc.net [142.177.194.45]) by hub.org (8.10.1/8.11.0) with ESMTP id e9JDJCn11509 for ; Thu, 19 Oct 2000 09:19:12 -0400 (EDT) (envelope-from jeff@hub.org) Received: from localhost (bignose@localhost) by rage.hub.org (8.11.0/8.11.0) with ESMTP id e9JDJAT20304 for ; Thu, 19 Oct 2000 10:19:10 -0300 (ADT) (envelope-from jeff@hub.org) X-Authentication-Warning: rage.hub.org: bignose owned process doing -bs Date: Thu, 19 Oct 2000 10:19:10 -0300 (ADT) From: Jeff MacDonald X-Sender: bignose@rage.hub.org Reply-To: Jeff MacDonald To: pgsql-sql@postgresql.org Subject: substr Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200010/175 X-Sequence-Number: 1837 i noticed that substr behaves a bit different in pgsql than perl ie select foo from table where substr(foo,1,1) = 'X'; initially i thought it should be substr(foo,0,1) just wondering on the reasoning for this offset ? Jeff MacDonald, ----------------------------------------------------- PostgreSQL Inc | Hub.Org Networking Services jeff@pgsql.com | jeff@hub.org www.pgsql.com | www.hub.org 1-902-542-0713 | 1-902-542-3657 ----------------------------------------------------- Facsimile : 1 902 542 5386 IRC Nick : bignose