![]() |
DataMapper ORM - How to INSERT INTO from SELECT - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: DataMapper ORM - How to INSERT INTO from SELECT (/showthread.php?tid=55549) |
DataMapper ORM - How to INSERT INTO from SELECT - El Forum - 10-31-2012 [eluser]Unknown[/eluser] Hello, Can somebody provide some guidance on hot to execute a query like shown here: Code: INSERT INTO tableA (A,B,C,D,E,F) I found some examples but they mention that I need to first to create a container Array, then a db->select, push query results into container array and then a db->insert, as shown below. However that seems counterproductive or time consuming, and adds complexity to the code (at lest from my pint of view) Code: ... |