what language are you using to access the database? no matter which one it is, just text edit the sql statement as a string and then pass that to the database
just stuff the array values into the sql statement like this
where id in ( i, j, k, l... )
the IN list method for choosing multiple rows in one statement is very efficient, especially if the field has an index in the database
rudy