If tables A and B have the same structure (except for the ID field). In A, it is assigned automatically, but in B it expects a value from the insert.
How can I do INSERT INTO A (select * from B).
What is the fastest, most flexible SQL that can work in a stored procedure.
source share