Home  >  Q&A  >  body text

Which label should be used in mybatis to use mysql's ON DUPLICATE KEY UPDATE syntax to implement existence and update?

Mybatis seems to only provide four tags for add, delete, modify and check (<insert>/<update>/<delete>/<select>), but similar to this branch processing statement with existence and update, mybatis How to use?

PHP中文网PHP中文网2712 days ago964

reply all(1)I'll reply

  • 天蓬老师

    天蓬老师2017-06-10 09:51:42

    Just use <insert> or <update>

    mybaits and merge

    reply
    0
  • Cancelreply