updating mysql with new dataset

Discussion in 'MySQL' started by olddocks, Nov 12, 2008.

  1. #1
    i have a strange problem. I have a massive database with primary key with autoincrement ID plus other fields. The company i work with often publishes the data in excel sheet and i converted to mysql table.

    what if they make new changes to existing data? how do i update my mysql data accordingly?
     
    olddocks, Nov 12, 2008 IP
  2. rene7705

    rene7705 Peon

    Messages:
    233
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    somehow export the previous values + the id of each row they're ever likely to an excel sheet.
    tell 'm not to touch the id field in the excel sheet or make it readonly :)
    then when you accept it back from them push it through a php script that creates UPDATE instead of INSERT statements..
     
    rene7705, Nov 12, 2008 IP