Re: Hidden Select - Mailing list pgsql-sql

From Peter Eisentraut
Subject Re: Hidden Select
Date
Msg-id Pine.LNX.4.30.0106081830360.757-100000@peter.localdomain
Whole thread Raw
In response to Hidden Select  (Luis Sousa <llsousa@ualg.pt>)
List pgsql-sql
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



pgsql-sql by date:

Previous
From: "Josh Berkus"
Date:
Subject: Re: behavior of ' = NULL' vs. MySQL vs. Standards
Next
From: Peter Eisentraut
Date:
Subject: Re: Re: About i8n