Importing Excel Sheets into MySQL with Values that relate to a separate table -
first up, might wrong place ask question.. so, sincere apologies that!
i have 2 mysql tables follows:
first table: employee_data
id name address phone_no 1 mark street 647-981-1512 2 adam street 647-981-1214 3 john street 647-981-1452
second table: employee_wages
id employee_id wages start_date 1 3 $15 12 march 2007 2 1 $20 10 oct 2008 3 2 $18 2 june 2006
i know, both these tables can combined 1 , there no need split data 2 tables. but, i'm working on requires data separate , in 2 different tables.
now, company used handle data in excel sheets , followed conventional method of having these 2 tables combined 1 sheet follows:
excel sheets
id name wages start_date 1 mark $20 10 oct 2008 2 adam $18 2 june 2006 3 john $15 12 march 2007
now, objective export data excel sheets mysql tables.
as can notice employee_data.id linked employee_wages.employee_id
how can replace values in excel sheet 'name' column represent actual unique id they're given in employee_data.id column..
may can php/mysql or can done in vb script.. but, i'm not expert in vb script..
any appreciated..
thanks!
use vlookup function in excel.
- import data excel
- use vlookup combine need
Comments
Post a Comment