Lets say I have two tables A and B with same schema and 1 Million rows each,
I can add values in table A and B into a table C using either a UNION ALL
or two INSERT INTO
statements.
I actually did it and found that the INSERT INTO did better, but I would like to know why? And is UNION ALL better in any specific scenario?