Subject | Re: [firebird-support] Is it possible to have a view with parameters? |
---|---|
Author | Ann Harrison |
Post date | 2011-03-31T14:49:14Z |
On Thu, Mar 31, 2011 at 3:04 AM, PenWin <penwin@...> wrote:
in some cases - e.g. LIKE - a statement with a parameter cannot be as
well optimized as a statement with an actual value, but you can look at
the plans for stored procedures and see that they do use views, even on
queries that include parameterized values.
Good luck,
Ann
>Where did the idea that procedures don't use indexes come from? Yes,
>> create selectable procedure, and You can do all You want.
>
> You won't get the benefit of indexes, though. That's what makes the
> parametrized views so useful.
>
in some cases - e.g. LIKE - a statement with a parameter cannot be as
well optimized as a statement with an actual value, but you can look at
the plans for stored procedures and see that they do use views, even on
queries that include parameterized values.
Good luck,
Ann