numbered table?

From: "UEBAYASHI 'UMA' Masao" <masao(at)nf(dot)enveng(dot)titech(dot)ac(dot)jp>
To: pgsql-sql(at)hub(dot)org
Subject: numbered table?
Date: 1999-12-10 06:34:10
Message-ID: 19991210153410K.masao@nf.enveng.titech.ac.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I want to create a table looks like:

num|code
---+----
1| 2
2| 3
3| 5
4| 9

from

code
----
2
3
5
9

Actually, original (code) table is not ordered, but ``SELECT DISTINCT
...'' does good work for me. I wonder if SQL has iterator or thing
like that.

Masao

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message UEBAYASHI 'UMA' Masao 1999-12-10 10:23:46 Re: [SQL] numbered table?
Previous Message Tom Lane 1999-12-09 19:20:20 Re: [SQL] subquery, except and view