pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Roberto Mello <rmello@cc.usu.edu>
To: Jonathan Ellis <jellis@advocast.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: String function page incorrect?
Date: Thu, 30 Nov 2000 16:25:15 -0700
Message-ID: <3A26E1DB.2C8B34FB@cc.usu.edu> (raw)
References: <5.0.2.1.2.20001130113826.082b4ec0@pop.mindspring.com>
	<3A268A5C.91CB7353@wgcr.org>
	<14886.40191.455322.734798@onceler.kciLink.com>
	<017c01c05b05$5729dfa0$0d00a8c0@dsl.inconnect.com>

Jonathan Ellis wrote:
> 
> I'm trying to find the correct function that returns the location of a
> substring within a string.  Looking at
> http://www.postgresql.org/docs/user/x2731.htm, it gives the Function name as
> "textpos" but in the Example column it uses "position".  But neither one
> works!
> 
> bf2=# select position('high', 'ig');
> ERROR:  parser: parse error at or near ","

	You need SELECT position('ig' in 'high');

lbn=# select position('ig' in 'high');
 strpos 
--------
      2
(1 row)

	-Roberto
-- 
Computer Science			Utah State University
Space Dynamics Laboratory		Web Developer
USU Free Software & GNU/Linux Club 	http://fslc.usu.edu
My home page - http://www.brasileiro.net/roberto



view thread (3+ messages)

Message-ID: <3A26E1DB.2C8B34FB@cc.usu.edu>
Permalink:  ../3A26E1DB.2C8B34FB@cc.usu.edu/
Also on:    postgresql.org/message-id/3A26E1DB.2C8B34FB@cc.usu.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 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: rmello@cc.usu.edu, jellis@advocast.com
  Subject: Re: String function page incorrect?
  In-Reply-To: <3A26E1DB.2C8B34FB@cc.usu.edu>
  References: <5.0.2.1.2.20001130113826.082b4ec0@pop.mindspring.com> <3A268A5C.91CB7353@wgcr.org> <14886.40191.455322.734798@onceler.kciLink.com> <017c01c05b05$5729dfa0$0d00a8c0@dsl.inconnect.com> <3A26E1DB.2C8B34FB@cc.usu.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