Received: from postgresql.org.org (webmail.postgresql.org [216.126.85.28]) by postgresql.org (8.11.3/8.11.1) with SMTP id f3DMjs839994 for ; Fri, 13 Apr 2001 18:45:54 -0400 (EDT) (envelope-from pgsql-sql-owner@postgresql.org) Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f3C6P9855110 for ; Thu, 12 Apr 2001 02:25:09 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.1/8.11.1) id f3C5wKB52042 for pgsql-sql@postgresql.org; Thu, 12 Apr 2001 01:58:20 -0400 (EDT) (envelope-from news) From: "Luis C. Ferreira" X-Newsgroups: comp.databases.postgresql.sql Subject: Re: enumerating rows Date: Thu, 12 Apr 2001 03:05:36 -0300 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 22 Message-ID: <9b3g5k$1iq6$1@news.tht.net> References: X-Complaints-To: scrappy@hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 To: pgsql-sql@postgresql.org X-Archive-Number: 200104/215 X-Sequence-Number: 2565 Try this.... CREATE SEQUENCE just_a_seq; Select nextval('just_a_seq') as row_no, * from pg_tables ; drop SEQUENCE just_a_seq; > > row_no | column1 | column2 | ... > -------+---------+---------+ ... > 1 | datum11 | datum12 | ... > 2 | datum21 | datum22 | ... > ... | ... | ... | ... > > I didn't find anything in the docs. > > TIA, Zoltan >