How to select by proximity

From: Francisco Leovey <fleovey(at)yahoo(dot)com>
To: "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: How to select by proximity
Date: 2012-05-14 18:00:49
Message-ID: 1337018449.10244.YahooMailNeo@web39304.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hello group
 
I have a large table indexed by a varchar column
I would like to select records that are around the hit value, say "Marriot" by index order
How can I retrieve the prior and next in order?
Is there a goto "Marriot" and then a goto +1 and goto -1 SQL facility?

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Postgres 2012-05-14 20:24:28 Re: How to select by proximity
Previous Message Steve Crawford 2012-05-14 15:46:27 Re: Unwanted time zone conversion