Re: Querying for strings that match after prefix - Mailing list pgsql-general

From Joachim Wieland
Subject Re: Querying for strings that match after prefix
Date
Msg-id 20060602114928.GA2576@mcknight.de
Whole thread Raw
In response to Querying for strings that match after prefix  ("badlydrawnbhoy" <badlydrawnbhoy@gmail.com>)
List pgsql-general
On Fri, Jun 02, 2006 at 02:47:22AM -0700, badlydrawnbhoy wrote:
> I need to locate all the entries in a table that match , but only after
> a number of characters have been ignored. I have a table of email
> addresses, and someone else has erroneously entered some addresses
> prefixed with 'mailto:', which I'd like to ignore.

Look here:

http://www.postgresql.org/docs/7.4/interactive/functions-string.html

especially the substring function will help you.


Joachim
PS: You should also consider upgrading to 7.4.13


pgsql-general by date:

Previous
From: John Sidney-Woollett
Date:
Subject: Re: Java Triggers
Next
From: John Sidney-Woollett
Date:
Subject: Re: Querying for strings that match after prefix