From: David Diller <ddiller@bbn.com>
To: pgsql-sql@postgresql.org
Subject: table as field type??
Date: Tue, 03 Oct 2000 10:59:48 -0400
Message-ID: <3.0.3.32.20001003105948.00ae7a70@pobox1.bbn.com> (raw)
I noticed that it's possible to have a table as a field type.
For example:
create table foo (val1 integer);
create table bar (val2 foo);
although the following doesn't work: create table bar2 (val2 foo[]);
val2 in table bar ends up as an int4, designed for storing an oid from
table foo.
Is there a way to perform a query on bar that will return values from table
foo (i.e., val1)?
Thanks,
David
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: ddiller@bbn.com
Subject: Re: table as field type??
In-Reply-To: <3.0.3.32.20001003105948.00ae7a70@pobox1.bbn.com>
References: <3.0.3.32.20001003105948.00ae7a70@pobox1.bbn.com>
* 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