Is possible to join two tables (One Mysql, the other Oracle) from two different servers in PHP? -
I will leave the previous story, but basically I have two different databases, retrieve information from I The Oracle (which has been given only to read) and the other MyScall (which we have full access to). My problem is that there is a column in the Oracle table that wants to draw data from us, though we need that column in mysql table. Is this a method that I can write an inclusion statement to include this mysql column in the Oracle Table? I have seen examples where people have used 'Linkedurs' but I was not sure how DB connections worked in PHP in a php file and the function is called when we use that specific database Want to use.
tl; Dr
Can a user join a mysql and the Oracle table? If so, then DP information is in a separate php file, so how can it be implemented in php?
I think the SQL query looks like this:
select [other table] but some login logic
You can not join 2 different database vendors, execute a query by a specific vendor query analyzer
You can still join PHP, but dump a lot of information into PHP Need. Small data sets should be fine, not good for big people ...
What do you want to do, copy data from a vendor to another in the temporary table, then join the execution Please.
For the purpose of this example, I will use the PDO I am going to take Oracle data and put it in mysql so that I can use it to be included on that data ...
$ oracle_table_b = "select * with mytable"; $ Oracle_data = $ pdo- & gt; Fatch ALL (); $ Stmt = $ pdo_mysql- & gt; Ready (insert in "mytemptable (mycols)"); Foreign exchange ($ oracle_data $ as line) {$ stmt-> Execute ($ line); } // Rejoin
Comments
Post a Comment