首页 > 技术文章 > 当表中数据不存在即插入,当存在时,即更新

weihongli 2016-07-12 20:17 原文

insert or replace into data (ID, Name) values (2,"a")     ID为主键

推荐阅读