update_batch and value increment - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: update_batch and value increment (/showthread.php?tid=51558) |
update_batch and value increment - El Forum - 05-09-2012 [eluser]spezia 018[/eluser] Hi everybody (sorry for my English) I have the following problem: SQL query (example): "UPDATE table SET total = total + '$total'". But considering that I have multi update, I have to use $this->db->update_batch() method... Is there any way of using this syntax (increment of total value) in update_batch()? How can I do this in CodeIgniter? update_batch and value increment - El Forum - 05-09-2012 [eluser]spezia 018[/eluser] Nobody had this problem? |