How to select the last value/row?

Поиск
Список
Период
Сортировка
От Shaozhong SHI
Тема How to select the last value/row?
Дата
Msg-id CA+i5JwZj2iCWVok4Bh7E3Z1tWtXrU0ipyPZ0810gkPso7fKRuA@mail.gmail.com
обсуждение исходный текст
Ответы Re: How to select the last value/row?  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-sql
Given,
ID
5
4
3
3
2
1


How to select the last one, to end up with

1

In Python, there are ways to handle ordered list.

In Postgres, is there something similar?


Regards,

David

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

Предыдущее
От: Rob Sargent
Дата:
Сообщение: Re: Working around insert into a_table from select things from a_function
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: How to select the last value/row?