sqlite 如何避免插入重复数据
引用:http://blog.sina.com.cn/s/blog_590be5290102vul2.html insert or replace:如果不存在就插入,存在就更新 insert or ignore:如果不存在就插入,存在就忽略 只对UNIQUE约束的字段起作用。举例: 建表: CREATE TABLE TEST(id BIGINT, name text, birthd...
转载
2018-06-30 19:24:10 ·
11010 阅读 ·
0 评论