In the MYSQLupdatetime field, ONUPDATECURRENT_TIMESTAMP is set. but after the UPDATE operation is executed, what is the possible cause of the time in the database or the time when it is added? {Code ...}
MYSQLupdatetimeField setON UPDATE CURRENT_TIMESTAMP
However, after the UPDATE operation is executed, what may be the cause of the time in the database or when the database is added?
public function updateInfo($cid,$data){ $this->db->set($data); $this->db->where('cid',$cid); if($this->db->update('report')){ return TRUE; } else { return FALSE; } }
Reply content:
MYSQLupdatetimeField setON UPDATE CURRENT_TIMESTAMP
However, after the UPDATE operation is executed, what may be the cause of the time in the database or when the database is added?
public function updateInfo($cid,$data){ $this->db->set($data); $this->db->where('cid',$cid); if($this->db->update('report')){ return TRUE; } else { return FALSE; } }
It may be that the data in this update is exactly the same as that in the database table, and the affected rows may be 0.