From: Luis Sousa <llsousa@ualg.pt>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql sql Mailing List <pgsql-sql@postgresql.org>
Subject: Re: Hidden Select
Date: Tue, 12 Jun 2001 09:27:19 +0100
Message-ID: <3B25D267.E7967A6E@ualg.pt> (raw)
References: <Pine.LNX.4.30.0106111834060.756-100000@peter.localdomain>
How's that ??
How can i define the rule to do that ?
Peter Eisentraut wrote:
> Luis Sousa writes:
>
> > Suposing your example:
> >
> > Now i want to do a query to the view like this:
> >
> > SELECT * FROM C WHERE id=1;
> >
> > I whant to chose the id, but that id isn't in my select list !!!?????
>
> Then you will have to define your view differently.
>
> > > Do you mean like this?
> > >
> > > create table A (id int, content text);
> > > create table B (id int, stuff numeric);
> > > create view C as select A.content, B.stuff from A, B where A.id = B.id;
>
> --
> Peter Eisentraut peter_e@gmx.net http://funkturm.homeip.net/~peter
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: llsousa@ualg.pt, peter_e@gmx.net
Subject: Re: Hidden Select
In-Reply-To: <3B25D267.E7967A6E@ualg.pt>
* 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