java中insert()方法和save()的区别

若存在主键:insert()不做操作,且insert()提示错误。save()改变原来的内容为新内容。
若不存在主键:相同。

posted @ 2023-04-24 14:51  徐承欢  阅读(209)  评论(0)    收藏  举报