[root@localhost home]# sqlite3 test.db SQLite version 3.6.11 Enter ".help" for instructions Enter SQL statements terminated with a ";" sqlite> select * from test_table; daobao|male|24 sqlite3_get_table 作用:执行SQ...
sqlite3_get_table(db,"select * from clients;",&results,&nrows,&ncols,&errmsg);printf("DB has %d rows and %d cols/n/n",nrows,ncols);tr=(nrows+1)*ncols;for(i=0;i<tr;++i) //输出查询结果 { ...