Re: View last 100 records

From: Raymond O'Donnell <rod(at)iol(dot)ie>
To: Bob McConnell <rvm(at)CBORD(dot)com>
Cc: pgadmin-support(at)postgresql(dot)org
Subject: Re: View last 100 records
Date: 2010-06-08 20:10:57
Message-ID: 4C0EA3D1.8030803@iol.ie
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)iol(dot)ie

In response to

Browse pgadmin-support by date

  From Date Subject
Next Message Massa, Harald Armin 2010-06-09 09:04:38 Re: hints in 1.12.0 Beta 1 (rev: 8328) do not honour UTF-8
Previous Message Dave Page 2010-06-08 19:34:33 Re: hints in 1.12.0 Beta 1 (rev: 8328) do not honour UTF-8