pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: José Soares <jose@sferacarta.com>
To: Mark Jewiss <mark@office.knowledge.com>
Cc: Chris Bitmead <chris.bitmead@bigfoot.com>
Cc: hackers <pgsql-hackers@postgresql.org>
Subject: Re: [SQL] LIMIT
Date: Thu, 29 Apr 1999 15:55:34 +0200
Message-ID: <372864D6.7FF6C7A0@sferacarta.com> (raw)
References: <Pine.BSF.4.05.9904291023430.4008-100000@office.knowledge.com>

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é

view thread (9+ messages)  latest in thread

Message-ID: <372864D6.7FF6C7A0@sferacarta.com>
Permalink:  ../372864D6.7FF6C7A0@sferacarta.com/
Also on:    postgresql.org/message-id/372864D6.7FF6C7A0@sferacarta.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: jose@sferacarta.com, mark@office.knowledge.com, chris.bitmead@bigfoot.com, pgsql-hackers@postgresql.org
  Subject: Re: [SQL] LIMIT
  In-Reply-To: <372864D6.7FF6C7A0@sferacarta.com>
  References: <Pine.BSF.4.05.9904291023430.4008-100000@office.knowledge.com> <372864D6.7FF6C7A0@sferacarta.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox