Re: View question

From: "James Orr" <james(at)lrgmail(dot)com>
To: "Glenn MacGregor" <gtm(at)oracom(dot)com>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: View question
Date: 2001-11-28 15:38:41
Message-ID: 000c01c17822$c255ab20$1600000a@lrg.office
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)oracom(dot)com>
To: <pgsql-sql(at)postgresql(dot)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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Stephan Szabo 2001-11-28 16:24:54 Re: PL/pgSQL loops?
Previous Message Knud Müller 2001-11-28 15:28:24 Return Opaque / Error in Function