Hi,
I have data in Excel . these are latest data.
I want to update mysql table data with Excel data.
How do I do it ? Please guide
N.B: I use SQLYog , MySQLAdministrator tool to manage db work. Can these tool be of help for this work. how ?
| SitePoint Sponsor |


Hi,
I have data in Excel . these are latest data.
I want to update mysql table data with Excel data.
How do I do it ? Please guide
N.B: I use SQLYog , MySQLAdministrator tool to manage db work. Can these tool be of help for this work. how ?


import the excel data into a table, then update your main table from this imported table using a joined update




source: http://dev.mysql.com/doc/refman/5.0/en/update.htmlCode:UPDATE items,month SET items.price=month.price WHERE items.id=month.id;






It may not have much things to do with table structure.
I'm worried because of this ...
suppose Excel data contains some SPACES ...and after import this SPACE goes to the CELL.
I don't want this extra SPACE damage my joined update query. ...now I have two choices to get rid of this space..
(a) just need a TRIM to work ....I asked the same for this .....This could be a solution also.
(b) remove SPACE from the EXCELL cell itself so that after import into table there will no SPACE in the CELL.... but unfortunately I don't know how to remove SPACE from Excel cell ....Do you know this ? This could be a solution also


Bookmarks