Subject | Re: [ib-support] Can you use ".." in IN statement? |
---|---|
Author | Mark Patterson |
Post date | 2002-11-07T23:13:22Z |
Svein Erling Tysvaer wrote:
ability to mingle ".." and "," in the IN clause was great. I was generating the
IN argument from another query, and it would come out like this little number I
just made up, or much longer:
WHERE KeyNum IN (10, 13..20, 22.35, 41, 43)
Nothing like succinctness! But it must be an MS SQL extension. I hope it gets
included in the next SQL standard.
Regards,
Mark
> At 16:31 07.11.2002 +1000, you wrote:I was using it in MS SQL Server to produce lists of any complexity, so the
>
>>WHERE KeyNum in (100..150)
>
>
> Don't know, I've never tried it nor seen any need for it. I always use
> WHERE KeyNum BETWEEN 100 AND 150
ability to mingle ".." and "," in the IN clause was great. I was generating the
IN argument from another query, and it would come out like this little number I
just made up, or much longer:
WHERE KeyNum IN (10, 13..20, 22.35, 41, 43)
Nothing like succinctness! But it must be an MS SQL extension. I hope it gets
included in the next SQL standard.
Regards,
Mark