Skip site navigation (1) Skip section navigation (2)

Re: String function page incorrect?

From: Roberto Mello <rmello(at)cc(dot)usu(dot)edu>
To: Jonathan Ellis <jellis(at)advocast(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: String function page incorrect?
Date: 2000-11-30 23:25:15
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-generalpgsql-sql
Jonathan Ellis wrote:
> I'm trying to find the correct function that returns the location of a
> substring within a string.  Looking at
>, 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');
(1 row)

Computer Science			Utah State University
Space Dynamics Laboratory		Web Developer
USU Free Software & GNU/Linux Club
My home page -

In response to

pgsql-sql by date

Next:From: musiconDate: 2000-12-01 00:10:35
Subject: eject
Previous:From: Tom LaneDate: 2000-11-30 23:05:42
Subject: Re: String function page incorrect?

pgsql-general by date

Next:From: Stephan SzaboDate: 2000-11-30 23:34:33
Subject: Re: strange query plans
Previous:From: Chris JonesDate: 2000-11-30 23:20:58
Subject: inheritance and foreign keys

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group