与insert不同,当记录已存在(主键或唯一索引判断),replace可先删后插入,类似update效果,例如:

use bac;
replace into lear_kafka(id, recvtype, brokerlist, topic, user, password) values(1, 2, '192.168.99.109:9092', 'test11', 'kakfa11', '112aA')