|
Sometimes I'll want all the rows where myfield2 is in (1, 2, 3). Other
times, I'll want all the rows where myfield2 is in (2, 4). Other
times, I'll want all the rows where myfield2 is in (5). And other
times, I'll want all the rows where myfield2 is in the empty set. The
actual set of desired values is completely arbitrary and determined at
run-time.
I would like a way to express "the set of desired values". Whatever
this expression is (let's call it desiredset) should be able to be
inserted into
select myfield1 from mylib.myfile where myfield2 in (desiredset)
When the set of desired values isn't empty, desiredset can consist of
a comma-separated list of literal values. But when the set is empty,
what should desiredset be?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.