in reply to Re^2: Explain SQL statement
in thread Explain SQL statement

The IN grabs all the values you want in one query, so you should not have the foreach loop. Just one execute and the while/fetch.

The PerlMonk tr/// Advocate