Re: View question - Mailing list pgsql-sql

From James Orr
Subject Re: View question
Date
Msg-id 000c01c17822$c255ab20$1600000a@lrg.office
Whole thread Raw
In response to View question  ("Glenn MacGregor" <gtm@oracom.com>)
List pgsql-sql
Hi Glenn,

Just make the column "type" part of the view.  Then use a WHERE when you
select from the view.

- James

----- Original Message -----
From: "Glenn MacGregor" <gtm@oracom.com>
To: <pgsql-sql@postgresql.org>
Sent: Wednesday, November 28, 2001 9:07 AM
Subject: [SQL] View question


Hi All,

Thanks Josh for the help on the last question.  Is there a way to create a
view so I can insert parameters?
The docs have the example:

create view kinds as select * from movies where type = 'Comedy';

select * from kinds;

What if I want a view where the type is a variable?  Is there a way to pass
data along?
   Thanks
       Glenn




pgsql-sql by date:

Previous
From: "Johnny Jørgensen"
Date:
Subject: PL/pgSQL loops?
Next
From: Stephan Szabo
Date:
Subject: Re: PL/pgSQL loops?