Re: Getting data where select has a limit criteria

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: Getting data where select has a limit criteria
Дата
Msg-id 20060112200344.GA55632@winnie.fuhr.org
обсуждение исходный текст
Ответ на Getting data where select has a limit criteria  (Kashyap Jani <kjani@cognitronics.com>)
Ответы Re: Getting data where select has a limit criteria
Список pgsql-interfaces
On Thu, Jan 12, 2006 at 10:48:08AM -0500, Kashyap Jani wrote:
>    I am trying to issue a query like "SELECT * from <some table> limit 
> 30". In psql command line interface it displays only 30 rows at a time. 

With LIMIT 30 psql should display only 30 rows altogether ("30 rows
at a time" suggests that you're getting more than 30 rows -- are
you?).

> How will it behave if I use libpq. Is it going to return me only 30 rows ?

If you put LIMIT 30 in the query then you should get at most 30
rows.  What happened when you tried it?

-- 
Michael Fuhr


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

Предыдущее
От: Kashyap Jani
Дата:
Сообщение: Getting data where select has a limit criteria
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: [libpq] Password authentication failed for user