Good day.
It is necessary to transfer data from a MS SQL Server Express table to a third-party table in MySQL.
Trying to execute the following query, but it creates duplicate records. How can they be avoided?
INSERT INTO OPENQUERY(YAM, 'SELECT * FROM ia.recognized_numbers') (numcar, time, type) SELECT param0, date, objid FROM i.dbo.PROTOCOL WHERE action = 'NUMBER_DETECTED' AND date not IN (SELECT time FROM OPENQUERY(YAM, 'SELECT * FROM ia.recognized_numbers'))