1
Good afternoon. How can I make a query in MS Sql and insert the values in a My Sql table through PHP?
Looking at this data, you can do this insertion?
#--> conexao mysql
require_once("mysql.php");
#--> conexao mssql
require_once("mssql.php");
#--> consulta sql server
$sqlserver= "select * from sql_server_table";
$sqlserverResult = odbc_exec($conMsSql, $sqlserver);
#--> insere no MySql
mysql_query("insert into mysql_table (col1, col2, col3) values ($sqlserverResult)";
Yes, it’s possible that way. Ai you choose whether to do the mysql Insert for each mssql line in a while, or generate a query from a multiples Insert
values()
– rray