Re: String function page incorrect? - Mailing list pgsql-sql

From Roberto Mello
Subject Re: String function page incorrect?
Date
Msg-id 3A26E1DB.2C8B34FB@cc.usu.edu
Whole thread Raw
In response to String function page incorrect?  ("Jonathan Ellis" <jellis@advocast.com>)
List pgsql-sql
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


pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: String function page incorrect?
Next
From: ±è°­¿í
Date:
Subject: eject