Re: LIMIT BASED ON PERCENT

Поиск
Список
Период
Сортировка
От Guillaume Lelarge
Тема Re: LIMIT BASED ON PERCENT
Дата
Msg-id 200911182027.08857.guillaume@lelarge.info
обсуждение исходный текст
Ответ на Re: LIMIT BASED ON PERCENT  (Another Trad <anothertrad@gmail.com>)
Ответы Re: LIMIT BASED ON PERCENT  (Another Trad <anothertrad@gmail.com>)
Re: LIMIT BASED ON PERCENT  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: LIMIT BASED ON PERCENT  (Kris Kewley <kris.kewley@gmail.com>)
Список pgsql-sql
Le mercredi 18 novembre 2009 à 20:24:09, Another Trad a écrit :
> No, It doesn't.
> In my machine:
>
> First select
> ERROR:  syntax error at end of input
> LINE 1: select * from rapadura.cliente limit 20%
>                                                 ^
> Second one:
> ERROR:  argument of LIMIT must not contain subqueries
>
> Postgres 8.3
>

It works for Lee because obviously he's working on a 8.4 server. You can use
subquery in a LIMIT clause if you have an 8.4 PostgreSQL server. For earlier
releases, there's no way to do this in a single query.


--
Guillaume.http://www.postgresqlfr.orghttp://dalibo.com


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

Предыдущее
От: Another Trad
Дата:
Сообщение: Re: LIMIT BASED ON PERCENT
Следующее
От: Another Trad
Дата:
Сообщение: Re: LIMIT BASED ON PERCENT