From: Tom Lane <tgl@sss.pgh.pa.us>
To: Lane Van Ingen <lvaningen@esncc.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Can EXCEPT Be Used for To Solve This Problem?
Date: Wed, 24 Aug 2005 19:21:03 -0400
Message-ID: <10454.1124925663@sss.pgh.pa.us> (raw)
In-Reply-To: <EKEMKEFLOMKDDLIALABIMEMGCBAA.lvaningen@esncc.com>
References: <EKEMKEFLOMKDDLIALABIMEMGCBAA.lvaningen@esncc.com>
"Lane Van Ingen" <lvaningen@esncc.com> writes:
> I want to select 2nd oldest transaction from foo (transaction 3).
Can't you just do
select * from foo order by update_time desc offset 1 limit 1
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, lvaningen@esncc.com
Subject: Re: Can EXCEPT Be Used for To Solve This Problem?
In-Reply-To: <10454.1124925663@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox