The table includes auto-increment. It is necessary to insert data into the table, but I do not know the number of fields to insert. I made a temporary table with all the required fields. How to make an insert without trying to insert an id which is on the autoincrement? Accordingly, the option Insert into table1 Select * from # table2
NOT SUITABLE.