Re: Number the lines

From: Kovacs Baldvin <kb136(at)hszk(dot)bme(dot)hu>
To: Haller Christoph <ch(at)rodos(dot)fzk(dot)de>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Number the lines
Date: 2001-09-17 12:54:51
Message-ID: Pine.GSO.4.33.0109171446130.8732-100000@ural2
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi!

I am in the university now, not be able to test what I
say, so please forgive me if it is buggy or wrong.

So does it helps you?:

CREATE SEQUENCE ordering;
SELECT NEXTVAL('ordering') as rownumber, *
INTO TABLE anewname FROM whatyouwant;

Probably CREATE SEQUENCE 'ordering';, do try it...

Bye,
Baldvin

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Haller Christoph 2001-09-17 14:15:32 Re: Number the lines
Previous Message Tomasz Myrta 2001-09-17 08:56:08 functions returning