Possible Duplicate:
What does a successful MySQL DELETE return? How to check if DELETE was successful?
Hello,
If I run a delete query, what is the php/mysql error code returned if a row was actually found and deleted or not found (and h开发者_运维技巧ence not deleted)?
Use mysql_affected_rows().
You can examine mysql_affected_rows() for that. But there no function, that can tell you which specific rows were updated or deleted by previous DML statement.
Don't use the error code. Call mysql_affected_rows.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论