Aarni ,
How about
SELECT some_id, some_name
FROM some_table
WHERE some_id IN (YOUR LIST seperated with commas)
Or you may go for arrays see contib for it.
--
With Best Regards,
Vishal Kashyap.
Did you know SaiPACS is one and only PACS
Management tool.
http://saihertz.com,
http://vishalkashyap.tk