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.
您好我有以下数据
1 aaaa 2 bbbb 1 aaaa 3 cccc 2 bbbb 3 cccc
我想将上述数据导入到这样的 SQLite
1 aaaa 2 bbbb 3 cccc
相同的号码必须导入一次。
我怎样才能做到这一点?
使用以下命令创建表:
CREATE TABLE T1 ID INTEGER PRIMARY KEY AUTOINCREMENT, C1 VARCHAR(60) UNIQUE
然后使用
insert or replace into T1 (C1) values ( ... )