Re: Sequences in transaction

Mike Castle <dalgoda@ix.netcom.com>

From: Mike Castle <dalgoda@ix.netcom.com>
To: pgsql-general@postgresql.org
Date: 2000-12-05T18:01:38Z
Lists: pgsql-general
On Tue, Dec 05, 2000 at 12:03:40PM -0500, Camm Maguire wrote:
> need to be able to *quickly* select a pair of *adjacent* rows in a
> table.  t2.seq = t1.seq + 1 seems to work pretty well.  Of course, I

What's wrong with a select ... order by .. limit 2 ?

mrc
-- 
       Mike Castle       Life is like a clock:  You can work constantly
  dalgoda@ix.netcom.com  and be right all the time, or not work at all
www.netcom.com/~dalgoda/ and be right at least twice a day.  -- mrc
    We are all of us living in the shadow of Manhattan.  -- Watchmen