pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: UEBAYASHI 'UMA' Masao <masao@nf.enveng.titech.ac.jp>
To: pgsql-sql@hub.org
Subject: numbered table?
Date: Fri, 10 Dec 1999 15:34:10 +0900
Message-ID: <19991210153410K.masao@nf.enveng.titech.ac.jp> (raw)

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



view thread (4+ messages)  latest in thread

Message-ID: <19991210153410K.masao@nf.enveng.titech.ac.jp>
Permalink:  ../19991210153410K.masao@nf.enveng.titech.ac.jp/
Also on:    postgresql.org/message-id/19991210153410K.masao@nf.enveng.titech.ac.jp

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: masao@nf.enveng.titech.ac.jp, pgsql-sql@hub.org
  Subject: Re: numbered table?
  In-Reply-To: <19991210153410K.masao@nf.enveng.titech.ac.jp>
  References: <19991210153410K.masao@nf.enveng.titech.ac.jp>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox