I am building a new booking system in PHP at the moment and I want to take over most of the data of the old system (MySQL) however the database structure of the new system will be slightly different. However I think I could take over some of the tables. Is it possible to import rows of old tables to the new table given that the column names are equal but some column names in the new table might be missing?
an example, the old table: tourguides id name address email telephone_mobile telephone_home
the new table tourguides id name address telephone_mobile
the new table doesn't has the column telephone_home, this shouldnt stop the import but instead it should be ignored
INSERT INTO new_tourguides (id,name,address,telephone_mobile) SELECT id, name, address, telephone_mobile FROM old_touguidesthen you shouldn't have any probems.