I need to populate a table within mysql with data from an excel spreadsheet.
A new updated spreadsheet will be generated weekly, the data will need to be entered into the table weekly to reflect this new spreadsheet.
That in itself isn’t a problem, I have been doing this by preventing access to the system, removing data from the table then importing the csv via phpmyadmin from the new spreadsheet each week, open the system back up.
Now however the data in mysql needs to have more fields than the spreadsheet provides.
It is basically staff data, the csv provides data such as
Forename, surname, email address, job title, dept
But in the database I also need other fields such as is_manager and is_admin that provides info on what they can view on the system.
These extra fields cannot come from the csv as that info is not available in the system that csv is generated from, nor can it be added to that system.
Can anyone suggest how I should go about doing this? Also, is there a better way of me importing the new spreadsheet each week that how I explained I currently do it above?
A new updated spreadsheet will be generated weekly, the data will need to be entered into the table weekly to reflect this new spreadsheet.
That in itself isn’t a problem, I have been doing this by preventing access to the system, removing data from the table then importing the csv via phpmyadmin from the new spreadsheet each week, open the system back up.
Now however the data in mysql needs to have more fields than the spreadsheet provides.
It is basically staff data, the csv provides data such as
Forename, surname, email address, job title, dept
But in the database I also need other fields such as is_manager and is_admin that provides info on what they can view on the system.
These extra fields cannot come from the csv as that info is not available in the system that csv is generated from, nor can it be added to that system.
Can anyone suggest how I should go about doing this? Also, is there a better way of me importing the new spreadsheet each week that how I explained I currently do it above?