SQLite插入值前先判断插入前先判断指定值是否存在,存在则update,不存在则insert怎么写法呢? [解决办法]不用判断 直接用replace into 就可以 和mysql是一样的[解决办法]http://www.sqlite.org/lang_insert.html