X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id B1DDD9DCBD5 for ; Mon, 13 Mar 2006 10:21:40 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 54751-07 for ; Mon, 13 Mar 2006 10:21:44 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from relay01.mdc.ubisoft.com (relay01.mdc.ubisoft.com [216.98.56.134]) by postgresql.org (Postfix) with ESMTP id A6A3F9DC813 for ; Mon, 13 Mar 2006 10:21:38 -0400 (AST) Received: from mdc-owa01.ubisoft.org (srvowa1-mdc.ubisoft.org [10.129.1.20]) by smarthost.mdc.ubisoft.com (Postfix) with ESMTP id 08F124BCB1; Mon, 13 Mar 2006 09:21:42 -0500 (EST) Received: from UBIMAIL1.ubisoft.org ([10.129.1.15]) by mdc-owa01.ubisoft.org with Microsoft SMTPSVC(6.0.3790.1830); Mon, 13 Mar 2006 09:21:41 -0500 x-mimeole: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Re: Ask a PostgreSql question (about select ) Date: Mon, 13 Mar 2006 09:21:41 -0500 Message-ID: <1E293D3FF63A3740B10AD5AAD88535D201C34459@UBIMAIL1.ubisoft.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [SQL] Ask a PostgreSql question (about select ) Thread-Index: AcZGUcxC6XdMVnHvR+WZS6KODPpDlwAVw/+A From: "Daniel Caune" To: "Michael Glaesemann" , "min" Cc: "postgresql sql list" X-OriginalArrivalTime: 13 Mar 2006 14:21:41.0855 (UTC) FILETIME=[72F27EF0:01C646A9] X-Ubisoft-MailScanner-Information: Please contact administrators@ubisoft.qc.ca X-Ubisoft-MailScanner: Found to be clean X-Ubisoft-MailScanner-SpamCheck: X-MailScanner-From: daniel.caune@ubisoft.com X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.113 required=5 tests=[AWL=0.113] X-Spam-Score: 0.113 X-Spam-Level: X-Archive-Number: 200603/187 X-Sequence-Number: 24533 > Objet=A0: Re: [SQL] Ask a PostgreSql question (about select ) >=20 > 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. >=20 > On Mar 13, 2006, at 12:30 , min wrote: >=20 > > 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