I am facing a problem regarding inserting data from one table to another table, with the same table structure, but with different column positions.
Example:
Table 1:
emp1:
Name char 50
Age int
Salary Float
Table 2:
emp2:
Name char 50
Salary Float
Age int
My code:
insert into emp1
select * from emp2
I can't insert because the column order is different from one table to the other, but, both tables have same name and data types.