in reply to Re^3: getting out of a loop
in thread getting out of a loop

Well, I did a workaround. I changed my query to select count (*) of the column where it is like 'foo%' and then after the query asked if count was > 0.

Thanks, both of you!

Oh, and I didn't know the db performed the full query anyway.

Tony