Which label should be used in mybatis to use mysql's ON DUPLICATE KEY UPDATE syntax to implement existence and update?
PHP中文网
PHP中文网 2017-06-10 09:49:42
0
1
883

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中文网

认证0级讲师

reply all(1)
Peter_Zhu

Just use <insert> or <update>

mybaits and merge

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!