sqlite怎么连接数据库文件 (c 连接sqlite数据库)
sorry, 没安装”sqlite developer”.
若只是想导出sqlite数据库中的表数据可以很简单地用sqlite命令:
tim@ubtim:~/workspace$ sqlite3
SQLite version 3.7.9: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$
是什么语言想要连接的呢,不同语言的操作差别挺大的
~~~~~~~
~~~~~~~~~~~~~
~~~~~