Subject | Re: [Firebird-Architect] IN LIST |
---|---|
Author | Dmitry Yemanov |
Post date | 2006-12-03T03:03:42Z |
Adriano dos Santos Fernandes wrote:
clear about that.
select list(id, '$') from t into :ids
?
2) Why is it better than a simple:
for
select * from t
where id in ( select ... )
?
I.e. why would you need an intermediate step?
Dmitry
>Do we speak about lists or ranges or both? IMO, the syntax should be
> Hence, a way to pass indeterminate number of intervals is very great:
> select * from t where id in list '5-10,20-30,50'
clear about that.
> And I see this syntax as a complement to FB2.1 LIST aggregate function,1) What will be a complement for:
> i.e. result of LIST can be passed to IN LIST. Example:
> select list(id) from t into :ids;
> for select * from t where id in list :ids ...
select list(id, '$') from t into :ids
?
2) Why is it better than a simple:
for
select * from t
where id in ( select ... )
?
I.e. why would you need an intermediate step?
Dmitry