How to just get the last in a recursive query

Поиск
Список
Период
Сортировка
От Shaozhong SHI
Тема How to just get the last in a recursive query
Дата
Msg-id CA+i5Jwbh6Yy-zW3AX3WLCUJANky9w8HtVo99NPxMAc9APY0zhw@mail.gmail.com
обсуждение исходный текст
Ответы Re: How to just get the last in a recursive query  (Rob Sargent <robjsargent@gmail.com>)
Список pgsql-sql


---------- 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>



3 rows got returns as follows:

 id
---  6  3  1

How to just get the last (namely, 1) in the most efficient way?
Regards, David

В списке pgsql-sql по дате отправления:

Предыдущее
От: Steve Midgley
Дата:
Сообщение: Re: How long does iteration over 4-5 million rows usually take?
Следующее
От: Rob Sargent
Дата:
Сообщение: Re: How to just get the last in a recursive query