标题:请问在qt-2.3.7中如何使用sqlite数据库啊??
作者:yanyf2006
日期:2006-07-18 23:53
内容:
尊敬的朋友们:
我已在arm板上装好了sqlite-2.8.17。但怎样在QT-2.3.7中用还不知道。具体的说是不知道怎么把sqlite的库加进去。请各位大侠帮帮忙啊。谢谢!
#1 [shiroki 07-19 22:18]
qte里没发现sqlite的接口,qtopia2里倒是有的, 源码包里可以搜到
#2 [yanyf2006 07-20 20:46]
是另外的源码包,还是在qtopia2的源码中,我找了一下好象没有,能提供具体的途径吗?
#3 [yanyf2006 07-20 21:00]
解决了深思熟虑 大家看看这个文档就明白了.
Below is a simple C program that demonstrates how to use the C/C++ interface to SQLite. The name of a database is given by the first argument and the second argument is one or more SQL statements to execute against the database. The function calls to pay attention to here are the call to sqlite3_open() on line 22 which opens the database, sqlite3_exec() on line 27 that executes SQL commands against the database, and sqlite3_close() on line 31 that closes the database connection.
#include
#include 这里关键所在
static int callback(void *NotUsed, int argc, char **argv, char **azColName){
int i;
for(i=0; i
#4 [backup 08-05 07:58]
请问如何获取sqlite3.h文件的呢? 如何编译出for arm的sqlite呢?
如果应用程序发布时,需要在目标板(S3C2410)安装哪些库文件呢?
#5 [dduan2002cn 09-20 09:59]
这个属于直接调用sqlite,qte-3.3.X以下的没有qt封装好的sqlite的接口,自己写个吧,效率会更高.