![]() |
Generating SQL statements - 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: Generating SQL statements (/showthread.php?tid=35704) |
Generating SQL statements - El Forum - 11-08-2010 [eluser]pyronate[/eluser] Pardon if there is a simple way to do this but I am new to CodeIgniter ![]() Code: Array Generating SQL statements - El Forum - 11-08-2010 [eluser]cahva[/eluser] Code: $this->db->where_in('id',$array)->delete('components'); That would create SQL to something like this: Quote:DELETE FROM components WHERE id IN (57,58,56,...); |