打开命令行
导出数据到data.csv
D:\project>sqlite3.exe old.db
sqlite version 3.21.0 2017-10-24 18:55:49
Enter “.help” for usage hints.
sqlite> .output data.csv
sqlite> select * from ProjData where XXXXXX;
sqlite> .output stdout
sqlite> .exit
将数据data.csv导入到数据表
D:\project>sqlite3.exe new.db sqlite version 3.21.0 2017-10-24 18:55:49 Enter “.help” for usage hints. sqlite> .import data.csv ProjData sqlite> .exit
原文链接:https://www.f2er.com/sqlite/198098.html