From: | "Shuying Wang" <wang(dot)shuying(dot)lists(at)gmail(dot)com> |
---|---|
To: | "Michael Fuhr" <mike(at)fuhr(dot)org> |
Cc: | pgsql-novice(at)postgresql(dot)org |
Subject: | Re: table inheritance |
Date: | 2006-02-22 06:19:57 |
Message-ID: | bbf221f60602212219x2d0403f3nceb7b6a60ade524e@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
Actually, it's my fault. It turns out that the parent table was empty
and there was some other table that had all the other data.
Thanks, that was a quick response.
--Shuying
On 2/22/06, Michael Fuhr <mike(at)fuhr(dot)org> wrote:
> On Wed, Feb 22, 2006 at 04:39:12PM +1100, Shuying Wang wrote:
> > I've got table x and table y which inherits table x. I want to get
> > items from table x which are not in table y. According to the
> > PostgreSQL documentation, the syntax would be "select * FROM ONLY x"
> > however this yields no rows, whereas something like "select * from x
> > where id not in (select id from y) " gives me what I want. Could
> > someone explain to me what I'm doing wrong using ONLY?
> Do any other tables inherit x? What's the output of the following
> query?
From | Date | Subject | |
---|---|---|---|
Next Message | Jaromír Kamler | 2006-02-22 13:56:54 | drop index |
Previous Message | Michael Fuhr | 2006-02-22 05:56:56 | Re: table inheritance |