Re: maximum rows to retrive

From: Lukasz Brodziak <lukasz(dot)brodziak(at)gmail(dot)com>
To: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Cc: Antonio Biondo <antonio(dot)84(at)email(dot)it>, pgsql-admin(at)postgresql(dot)org
Subject: Re: maximum rows to retrive
Date: 2011-02-04 11:13:58
Message-ID: AANLkTimbKu+gLeEGQ2Ka644Ent-06J-Fspsn4E5Vwru4@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi,

Antonio You have to remember to put ORDER BY clause because LIMIT
returns random rows if You would like to return let's say 100 rows
starting from row #250 the query would be sth like this:
SELECT emp_id, name, surname, dept FROM empleyees LIMIT 100 OFFSET 250
ORDER BY emp_id

2011/2/4 Guillaume Lelarge <guillaume(at)lelarge(dot)info>:
> Le 01/02/2011 18:44, Antonio Biondo a écrit :
>> Hi, i not found in query tool of PgAdmin III the option to set "maximum
>> rows to retrive". Is there no this option?
>>
>
> This option only exists in the data grid. If you need this in the query
> editor, add a LIMIT clause on your queries.
>
>
> --
> Guillaume
>  http://www.postgresql.fr
>  http://dalibo.com
>
> --
> Sent via pgsql-admin mailing list (pgsql-admin(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin
>

--
Łukasz Brodziak
"What if everyting around You isn't quite as it seems,
What if all the world You think You know is an inelaborate dream
When You look at Your reflection is that all you want it to be
What if You could look right through the cracks
Would You find Yourself...... Find Yourself afraid to see"

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Gnanakumar 2011-02-04 11:18:34 Re: Is there a batch/bulk UPDATE syntax available?
Previous Message Guillaume Lelarge 2011-02-03 23:44:54 Re: maximum rows to retrive