Search Postgresql Archives

getting the last N tuples of a query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

if a want the first   5,10,N tuples  of a query  (even without order)   
i just  have to do a:
select  * from table limit 10;


but, What can i do to get the last  10 tuples ???
  i try to do:
select * from table limit -10;  :-D  but  that query  return 0 tuples .

So, what is the right way to do that  with no order????



-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux