MySql中的replace into

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

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

原文地址:https://www.cnblogs.com/az4215/p/13259458.html