Update query increment field plus 1 codeigniter

how would I go about updating that field by 1 within a sql command?
Ankur Rajput
Asked 12-07-2024
237

Answer (1)
$this->db->where("id", $id); $this->db->set("set_row", "`set_row`+ 1", FALSE); $this->db->update("article");
Deepak Sharma
Asked 18-07-2018
45 Likes
Comments
Write comment

Submit your answer