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.

  1. import data excel
  2. use vlookup combine need

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -