> There's nothing special in this query:
>
[quoted text clipped - 3 lines]
> except that I'm creating tblx in application. It's a small array with
> just 2 columns and usually 2-3 rows. Used for user preferences.
SELECT tbla.*
FROM tbla,
TABLE ( VALUES ( ... <generate rows here> ... ) ) AS tblx(cola, colb)
WHERE tbla.cola = tblx.cola
ORDER BY tblx.colb
An example for the generated rows could be:
VALUES (1, 2), (3, 4), (5, 6)
> Do you think there's a way to do it? I'm using PHP and DB2 if it
> matters.
Does not matter.

Signature
Knut Stolze
DB2 Information Integration Development
IBM Germany
regul8or - 28 Sep 2006 11:56 GMT
Thanks! It did the trick
Just for the reference (to myself): It's in SQL Reference vol.1,
Fullselect, values-clause