I have a new database table called schools. I have an existing database table on another server that has similar school info that I need. Example: Name, City, State etc., I am using phpMyAdmin to manage this.
My question is… What is the best/detailed way to export the school data from the outside server’s database table into the new database table but only extracting and imported the columns I need (example: Name, City, State, etc)?
In SQL, select the data you need,
Then in PHP, output it to some format,
phpMyAdmin has functions to import (and export) data in certain formats including CSV.
You can then import the CSV file to the new server.
You could also do it the other way: save the whole database and import it to the new server. Then delete the columns you dont need with SQL following this syntax,