Sqlite.exe 命令行导出、导入数据(直接支持CSV)
打开命令行
导出数据到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