sql: DELETE + INSERT vs UPDATE + INSERT

后端 未结 7 1674
花落未央
花落未央 2021-01-19 02:29

A similar question has been asked, but since it always depends, I\'m asking for my specific situation separately.

I have a web-site page that shows some data that co

7条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-19 03:12

    What if some data that was present yesterdays is not anymore? Delete may be safer or you could end up deleting some records anyway.

    And in the end it doesnt really matter which way you go. Unless on the case @kevinw mentioned

提交回复
热议问题