pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Caune <daniel.caune@ubisoft.com>
To: Michael Glaesemann <grzm@myrealbox.com>
To: min <seedbcc@a-qe.com>
Cc: postgresql sql list <pgsql-sql@postgresql.org>
Subject: Re: Ask a PostgreSql question (about  select )
Date: Mon, 13 Mar 2006 09:21:41 -0500
Message-ID: <1E293D3FF63A3740B10AD5AAD88535D201C34459@UBIMAIL1.ubisoft.org> (raw)

> Objet : Re: [SQL] Ask a PostgreSql question (about select )
> 
> Please post questions to the list. I'm forwarding this to the SQL
> list, as I think it's probably most applicable. I don't know much
> about the Oracle syntax you've used. Hopefully someone will be able
> to help you.
> 
> On Mar 13, 2006, at 12:30 , min wrote:
> 
> > Please help me one  PostgreSQL Statement, Thanks
> >
> > in Oracle
> > select rownum,groupid,qty  from abc
> > ---  --- ----
> > 1     a5   3
> > 2     a2   4
> > 3     a3   5
> > 4
> > 5
> > .
> > .
> > .
> >
> >
> > in PostgreSql
> >
> > How to wirte Statement (  Rownum -> change ??)
> >

PostgreSQL doesn't have the Oracle ROWNUM feature.  But if you were using ROWNUM to limit a result set, you are more likely to use the LIMIT feature in PostgreSQL:

http://archives.postgresql.org/pgsql-sql/2005-05/msg00127.php


--
Daniel



view thread (2+ messages)

Message-ID: <1E293D3FF63A3740B10AD5AAD88535D201C34459@UBIMAIL1.ubisoft.org>
Permalink:  ../1E293D3FF63A3740B10AD5AAD88535D201C34459@UBIMAIL1.ubisoft.org/
Also on:    postgresql.org/message-id/1E293D3FF63A3740B10AD5AAD88535D201C34459@UBIMAIL1.ubisoft.org

 · 

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: daniel.caune@ubisoft.com, grzm@myrealbox.com, seedbcc@a-qe.com
  Subject: Re: Ask a PostgreSql question (about  select )
  In-Reply-To: <1E293D3FF63A3740B10AD5AAD88535D201C34459@UBIMAIL1.ubisoft.org>
  References: <1E293D3FF63A3740B10AD5AAD88535D201C34459@UBIMAIL1.ubisoft.org>

* 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