Update query increment field plus 1 codeigniter

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

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