Force mysql to throw error if no rows deleted (trying to delete non-existent row)
问题 I am using Perl DBI ( execute_array ), but I think that this is more of a mysql issue. I am trying to DELETE a few rows, and ran into the issue that the command completes successfully with no errors, but my rows are not being deleted (modified rows returns 0E0, i.e., "zero but true", i.e., "0 rows deleted"). When I tried via PHPMyAdmin , the rows deleted with no issue. After some debugging and long blank stares at my screen, I realized that one of the columns I was using in my DELETE