in reply to Retrieving number of updated rows in a database
You don't need to change your code to use do instead of execute. execute also returns the number of rows for non-SELECT statments. The 0E0 caveat applies here as well.