I'm doing db data migration in MySQL.
I have two tables - source (T1) & destination (T2).
I created one insert ignore script to migrate data from T1 to T2. during script run some record might have failed. So I want to capture these failed records in another table and publish the report out of it
Through a stored procedure I'm able to capture errors and inserted to error table.
But as I asked not use stored procedure so is there any alternative way to capture failure records and insert to error table
Thanks in advance