Codeigniter db->update() VS MySQL native UPDATE Affected rows: 0
问题 Using MySQL alone - If I make a basic update to a table like this: UPDATE `SOMETABLE` SET `NAME` = 'John' WHERE `ID` = 1; And the value of NAME = ' John ' was already ' John ' - in other-words - nothing is new, nothing to update. MySQL returns " Affected rows: 0 (Query took 0.0007 sec) " If I make the same call - now using CodeIgniter - and then retrieve the affected rows like this: $data = array( 'NAME' => 'John' ); $this->db->where('ID', 1); $this->db->update('SOMETABLE', $data); $affect =