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
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?
http://archives.postgresql.org
- [SQL] Number the lines Yoann
- Re: [SQL] Number the lines Jeff Eckermann
- Re: [SQL] Number the lines Haller Christoph
- Re: [SQL] Number the lines Kovacs Baldvin
- Re: [SQL] Number the lines Christopher Sawtell
