Re: View last 100 records

Поиск
Список
Период
Сортировка
От Raymond O'Donnell
Тема Re: View last 100 records
Дата
Msg-id 4C0EA3D1.8030803@iol.ie
обсуждение исходный текст
Ответ на View last 100 records  ("Bob McConnell" <rvm@CBORD.com>)
Список pgadmin-support
On 08/06/2010 17:47, Bob McConnell wrote:
> I have been using 8.4 and just installed 10.3. Both have a menu option
> to view the first 100 records of a table. I have several tables on both
> development and QA servers with several thousand records in them. I only
> need to see the most recent. Is there a simple way to view the last 100
> records in a table?

You'll need to do
  SELECT.... ORDER BY .... DESC LIMIT 100

from an edit window - there's no "built-in" way of doing it from a menu
item.

The definition of "first" and "last" is always going to be
situation-dependent in any case... I think the the menu item does it
based on the primary key, and your specific needs may differ.

Ray.

-- 
Raymond O'Donnell :: Galway :: Ireland
rod@iol.ie


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

Предыдущее
От: Dave Page
Дата:
Сообщение: Re: hints in 1.12.0 Beta 1 (rev: 8328) do not honour UTF-8
Следующее
От: "Massa, Harald Armin"
Дата:
Сообщение: Re: hints in 1.12.0 Beta 1 (rev: 8328) do not honour UTF-8