Home > Back-end >  SQL can replace into according to the primary key in the field of judgment
SQL can replace into according to the primary key in the field of judgment

Time:03-20

Replace into only according to primary judgment, if there are changes, there is no insert, can now according to the primary key field for judgment, mybatis or mp have any demand for such solution?

CodePudding user response:

Can be written in mybatis dynamic, the premise is if this field index, otherwise it will slow
  • Related