how to update mysql database with new data set?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • olddocks
    New Member
    • Nov 2007
    • 26

    how to update mysql database with new data set?

    i have a strange problem. I have a massive database with primary key being autoincrement ID and 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 base accordingly?
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Check the ON DUPLICATE KEY UPDATE clause in the refmanual entry for insert

    Comment

    • olddocks
      New Member
      • Nov 2007
      • 26

      #3
      thanks

      can anything be done with primary key set as auto_increment.

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Do you mean that if they update an existing record, they will use a different key from the one that is in the database?

        Comment

        Working...