how avoid dublicate data to mysql

后端 未结 3 1348
眼角桃花
眼角桃花 2021-01-28 11:27

I write the code to scrap car info(title, make, model, transmission, year, price) data from ebay.com and save in the mysql, I want if all row\'s(title, make, model, ...) item\'s

3条回答
  •  一个人的身影
    2021-01-28 11:49

    declare the primary key as all the columns in the table. See: https://www.mysqltutorial.org/mysql-primary-key/

提交回复
热议问题