mybigman's avatar

Insert Oracle Select Mysql

Hi Guys,

I am trying to insert data into an oracle table from a select of a mysql which isnt going to well :(

DB::connection('oracle')->insert("
    INSERT INTO oracle_table
    SELECT ... FROM mysql_table
");

Any ideas?

Thanks

0 likes
3 replies
bobbybouwmann's avatar

The insert method expects an array or a model... This will not work. You will have to do two queries, first get the data, second put the data in the database

Please or to participate in this conversation.