Re: [SQL] LIMIT - Mailing list pgsql-hackers

From José Soares
Subject Re: [SQL] LIMIT
Date
Msg-id 37286667.F584462D@sferacarta.com
Whole thread Raw
List pgsql-hackers
Mark Jewiss ha scritto:

> > > Could someone give me an example of a select * with LIMIT
> > > used by 6.5?
> >
> > SELECT * FROM foobar LIMIT 100
>
> Or you could use ROWCOUNT...
>
> set rowcount = 10
> select * from table
>
> Regards,
>
> Mark.
> --
> Mark Jewiss
> Knowledge Matters Limited

I  know nothing about SET ROWCOUNT, it doesn't work for me.
I see v6.5 accepts still SET QUERY_LIMIT TO #
but it doesn't work too.
______________________________________________________________
PostgreSQL 6.5.0 on i586-pc-linux-gnu, compiled by gcc 2.7.2.3
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jose'




pgsql-hackers by date:

Previous
From: José Soares
Date:
Subject: Re: [SQL] LIMIT
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] FYI: snapshot 4/28/1999 (fwd)