User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MySQL section within the Web Development category of DaniWeb, a massive community of 427,433 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,664 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MySQL advertiser: Programming Forums
Views: 9164 | Replies: 3
Reply
Join Date: Jul 2005
Posts: 6
Reputation: escolta is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
escolta escolta is offline Offline
Newbie Poster

Help how to update data in mysql table using data from an excel table

  #1  
Aug 1st, 2005
i get an excel report each month,

There are two columns (person`s name and Salary)
in this month report there was 99 persons.

my question is , if in next month excel report there are less persons...say 75, and also 23 persons raised their salary..

how can i updatae this changes in a mysql table that i have this mysql table has the exact same two columns and the exact same information i have in excel...

is there a way to do this?

Please help
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jun 2005
Posts: 28
Reputation: proghelper is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
proghelper proghelper is offline Offline
Light Poster

Re: how to update data in mysql table using data from an excel table

  #2  
Aug 3rd, 2005
Do you want the whole process to be automated?

If that is the case, you could use the Excel API and convert the Excel file to some program understandable text format and write a program to extract and write the info to the database.

------------------------

Programming ( Assignment / Project ) Help
Reply With Quote  
Join Date: Mar 2006
Posts: 1
Reputation: randi is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
randi randi is offline Offline
Newbie Poster

Re: how to update data in mysql table using data from an excel table

  #3  
Mar 24th, 2006
has anyone already written a program that does this that i could use?
Reply With Quote  
Join Date: Jun 2005
Location: Kansas City, Missouri, USA
Posts: 344
Reputation: Troy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 4
Troy's Avatar
Troy Troy is offline Offline
Posting Whiz

Help Re: how to update data in mysql table using data from an excel table

  #4  
Mar 24th, 2006
Yes, you can script a solution. The question then is, what programming languages are you comfortable with? If you are not a programmer, then you need to find one.

You can use ODBC drivers to connect directly to an Excel file. You can then iterate the rows just like a normal SQL table. So your code would iterate the rows in Excel, and update the MySQL db as necessary.

Once you know what language you prefer to use, you should post in the appropriate programming forum--your question is really a programming question, not a database question.
Troy Wolf is the author of SnippetEdit. "Website editing as easy as it gets." IX Web Hosting
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb MySQL Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the MySQL Forum

All times are GMT -4. The time now is 5:30 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC