如何用SQLite Developer导入数据库文件
发布网友
发布时间:2022-04-25 23:39
我来回答
共2个回答
热心网友
时间:2022-04-07 22:18
sorry, 没安装"sqlite developer".
若只是想导出sqlite数据库中的表数据可以很简单地用sqlite命令:
tim@ubtim:~/workspace$ sqlite3
SQLite version 3.7.7 2011-06-23 19:49:22
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> create table tb_test (field int, val varchar(3));
sqlite> insert into tb_test values (1, 'a');
sqlite> insert into tb_test values (2, 'b');
sqlite> insert into tb_test values (3, 'c');
sqlite> .mode csv
sqlite> .output tb_test.csv
sqlite> select * from tb_test;
sqlite> .q
tim@ubtim:~/workspace$ cat tb_test.csv
1,a
2,b
3,c
tim@ubtim:~/workspace$
热心网友
时间:2022-04-07 23:36
孕赞扬嘎猛误用蕾