From: | Matt McClure <matthew(dot)mcclure(at)yale(dot)edu> |
---|---|
To: | Ferruccio Zamuner <solo3(at)mail(dot)chierinet(dot)it> |
Cc: | pgsql-general(at)postgreSQL(dot)org |
Subject: | Re: [GENERAL] Nested tables |
Date: | 1998-07-24 19:38:22 |
Message-ID: | Pine.GSO.3.94.980724153702.22785J-100000@mercury.cis.yale.edu |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Fri, 24 Jul 1998, Ferruccio Zamuner wrote:
> CREATE TABLE foo (
> x int2
> );
>
> CREATE TABLE bar (
> y foo,
> z int
> );
>
> I read on some Postgres mailing digest that I had to put the OID of instance
> of foo into y field of bar.
>
> So I tried.
>
> The problem is that when I submit the following query:
>
> SELECT foo.x, bar.z WHERE foo.oid=bar.y;
>
> trying to catch int fields either from bar and from its instance of foo,
> Postgres replies that bar.y (of type foo) and foo.oid (of type oid) cannot be
> compared.
> I've also tried to cast them in many ways but the answer never changes!
You could declare bar.y to be of type oid instead of type foo.
From | Date | Subject | |
---|---|---|---|
Next Message | Byron Nikolaidis | 1998-07-24 19:43:33 | Re: [GENERAL] Re: [INTERFACES] ODBC Driver -- Access Order By problem solved!!! |
Previous Message | Richard Lynch | 1998-07-24 19:14:45 | Re: [GENERAL] Re: [INTERFACES] ODBC Driver -- Access Order By problem solved!!! |