Inserting into a mysql table and overwritng any current data

前端 未结 5 962
醉话见心
醉话见心 2020-12-16 19:48

I am inserting some data into a table, but it occasionally clashes with other data in the table (ie. it has the same primary key).
I would like to be able to just over

5条回答
  •  忘掉有多难
    2020-12-16 20:13

    You can use replace statement instead of insert. Look at http://dev.mysql.com/doc/refman/5.1/en/replace.html

提交回复
热议问题