Re: limiting rows in an query

From: Varun Kacholia <varunk(at)cse(dot)iitb(dot)ac(dot)in>
To: Felipe Schnack <felipes(at)ritterdosreis(dot)br>
Cc: pgsql-jdbc <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: limiting rows in an query
Date: 2002-09-30 13:17:26
Message-ID: 20020930185031.A18185@cse.iitb.ac.in
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Hi ,

Postgresql also follows the same syntax.

SELECT select_list
FROM table_expression
[LIMIT { number | ALL }] [OFFSET number]

On Mon, Sep 30, 2002 at 10:09:15AM -0300, Felipe Schnack wrote:
> In MySQL I can get the first 30 rows in an query doing this:
> SELECT * FROM `inscricoes` LIMIT 0, 30
> How I do this in pgsql?
> --
>
> Felipe Schnack
> Analista de Sistemas
> felipes(at)ritterdosreis(dot)br
> Cel.: (51)91287530
> Linux Counter #281893
>
> Faculdade Ritter dos Reis
> www.ritterdosreis.br
> felipes(at)ritterdosreis(dot)br
> Fone/Fax.: (51)32303328
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly

--
Varun
------
Do not kill time ... else time will kill you

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Michael Paesold 2002-09-30 13:27:15 Re: limiting rows in an query
Previous Message Felipe Schnack 2002-09-30 13:09:15 limiting rows in an query