Hi,
I need to move from table1 which is in SQLServer to table2 which is in MySQL. On the other hand, you should only pass new records, that is, you should only transfer records that do not exist in table1.
I don’t know if it’s something like this, but I don’t understand how the script will look at the two databases (mysql and sqlserver).
$sql (“INSERT INTO table1 (field_id1, field2, field3)
SELECT id_field1, field2, field3
FROM table2
WHERE field_id1 NOT IN (SELECT field_id1 FROM table1)”)
sc_lookup(ds, $sql,“conn_sqlserver”);
I’m running this code in a blank but it’s wrong.
I can’t understand how Scriptcase join two connections (mysql and sqlserver) or different servers.
I’m new to the community, thanks for the help.