pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: Luis Sousa <llsousa@ualg.pt>
Cc: pgsql sql Mailing List <pgsql-sql@postgresql.org>
Subject: Re: Hidden Select
Date: Fri, 8 Jun 2001 18:31:57 +0200 (CEST)
Message-ID: <Pine.LNX.4.30.0106081830360.757-100000@peter.localdomain> (raw)
In-Reply-To: <3B2092D1.C272FB63@ualg.pt>

Luis Sousa writes:

> I have a query that joins several table with some restrictions.
> I want to take out those restrictions from the query and create a view
> that does not show the fields that are used to restrict the data, but in
> some way, i can restrict that data when i call the view.

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




view thread (6+ messages)  latest in thread

Message-ID: <Pine.LNX.4.30.0106081830360.757-100000@peter.localdomain>
Permalink:  ../Pine.LNX.4.30.0106081830360.757-100000@peter.localdomain/
Also on:    postgresql.org/message-id/Pine.LNX.4.30.0106081830360.757-100000@peter.localdomain

 · 

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: peter_e@gmx.net, llsousa@ualg.pt
  Subject: Re: Hidden Select
  In-Reply-To: <Pine.LNX.4.30.0106081830360.757-100000@peter.localdomain>
  References: <3B2092D1.C272FB63@ualg.pt> <Pine.LNX.4.30.0106081830360.757-100000@peter.localdomain>

* 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