📜  更新 numof rows codeigniter - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:32.939000             🧑  作者: Mango

代码示例1
if (!$country_id) {                
    $this->db->insert('country_master', $insert_array);
    $id = $this->db->insert_id();
} else {
    $this->db->update('country_master', $insert_array, array("country_id" => $country_id, "last_updated" => $time));
    $afftectedRows = $this->db->affected_rows();
}