Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgadmin-support by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group