parameters in views

From: John Smith <john_smith_45678(at)yahoo(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: parameters in views
Date: 2003-02-14 22:30:44
Message-ID: 20030214223044.91080.qmail@web40702.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Is it possible to have "parameters" in views? Such as:

create view v_t1t2 as
select t1.*, t2.*
from t1
left join t2 on t1.id=t2.t1id and t2.other_id = $param
order by t2.name;

John

---------------------------------
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day

Browse pgsql-general by date

  From Date Subject
Next Message Jeffrey Baker 2003-02-14 22:38:21 Re: In 7.3.1, will I be able to reindex toast?
Previous Message Patrick Nelson 2003-02-14 22:30:28 Re: pgtcl way of specifying a user [SOLVED]