Re: [SQL] LIMIT

From: José Soares <jose(at)sferacarta(dot)com>
To: Mark Jewiss <mark(at)office(dot)knowledge(dot)com>
Cc: Chris Bitmead <chris(dot)bitmead(at)bigfoot(dot)com>, hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [SQL] LIMIT
Date: 1999-04-29 13:55:34
Message-ID: 372864D6.7FF6C7A0@sferacarta.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-sql

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 don't know nothing about ROWCOUNT.
SET ROWCOUNT doesn't work for me.
hygea=> set rowcount = 10;
ERROR: parser: parse error at or near "10"

PostgreSQL still accepts SET QUERY_LIMIT but it doesn't work...

hygea=> set query_limit to '1';
SET VARIABLE
hygea=> select * from contatori;
tipologia|tabella |contatore|contatorebis
---------+---------------+---------+------------
SOTTO |Modena | 1| 2
SOPRA |prestazioni | 20|
(2 rows)
--------------------------------------------------------------
PostgreSQL 6.5.0 on i586-pc-linux-gnu, compiled by gcc 2.7.2.3
-----------------------------------------------------------------------------------

José

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message José Soares 1999-04-29 14:02:15 Re: [SQL] LIMIT
Previous Message José Soares 1999-04-29 13:28:16 Re: [SQL] LIMIT

Browse pgsql-sql by date

  From Date Subject
Next Message José Soares 1999-04-29 14:02:15 Re: [SQL] LIMIT
Previous Message José Soares 1999-04-29 13:28:16 Re: [SQL] LIMIT