MySql中的replace into

replace into是增强版的Insert into,replace into首先尝试插入数据到表中,如果发现表中已经存在数据(根据主键或者唯一索引判断),则先删除此行数据再插入新数据,不存在数据则直接插入。

分析replace into --> https://www.jianshu.com/p/698d139e5e41

posted @ 2020-07-07 10:45  酷学大叔  阅读(234)  评论(0编辑  收藏  举报