Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我通过 php 和 jason 从 mysql 数据库中获取所有记录,并将这些记录插入 Sqlite。但是每次创建该活动时,它都会在 Sqlite 中插入重复的条目。我想检查该值是否已经存在于 sqlite 表中然后值不应插入 Sqlite
您应该查看记录是否不存在,然后将其插入。
您必须使 Sqlite 数据库的条目独一无二。我遇到了同样的问题,但我已经解决了。如果您将您正在创建表的 sqlite 代码发送给我。我会确切地告诉您这将解决您的问题