in reply to Odd Database Behavior

Try it without the quotes around the ?. IIRC, parameter substitution will know that it has a string.

The PerlMonk tr/// Advocate