Re: How to just get the last in a recursive query
| От | Rob Sargent |
|---|---|
| Тема | Re: How to just get the last in a recursive query |
| Дата | |
| Msg-id | 524d8959-47c1-4ea7-92cf-8c946f56b428@gmail.com обсуждение исходный текст |
| Ответ на | Re: How to just get the last in a recursive query (Shaozhong SHI <shishaozhong@gmail.com>) |
| Список | pgsql-sql |
On 4/4/22 17:21, Shaozhong SHI wrote:
That is not the most efficient in this case.Don't top postHow to tell query to deliberately miss out all except the last one is of interest.Regards, David
On Monday, 4 April 2022, Rob Sargent <robjsargent@gmail.com> wrote:On 4/4/22 16:14, Shaozhong SHI wrote:reverse the order of the last query and set limit 1---------- Forwarded message ---------
From: Shaozhong SHI <shishaozhong@gmail.com>
Date: Mon, 4 Apr 2022 at 23:13
Subject: How to just get the last in a recursive query
To: PostGIS Users Discussion <postgis-users@lists.osgeo.org> In this example, Network Walking in PostGIS · Paul Ramsey (cleverelephant.ca)3 rows got returns as follows:id --- 6 3 1How to just get the last (namely, 1) in the most efficient way?Regards, David
And your definition of "last" is what, exactly
В списке pgsql-sql по дате отправления: