powerbuilder 与sqlite3数据库
来源:互联网 发布:madness淘宝店哪个真 编辑:程序博客网 时间:2024/05/16 11:35
今天要使用powerbuilder 读取医保日志 ,于是写了一个database.dll文件,用于访问sqlite3数据库。
database.dll这个文件使用万能vc++2005编绎,源码:www.sqlite.org中下载3.8.10版本
为了方便pb的使用,将sqlite*指针转化为long类型。
以下是导出的函数声明
function int sqlite3open_v2(string filename,ref long ppDb,int flags,string zVfs) library "database.dll" function int sqlite3open(string filename,ref long ppDb ) library "database.dll" function int sqlite3close_v2(long ppDb) library "database.dll"function int sqlite3close(long ppDb) library "database.dll" function int sqlite3open16(string filename,ref long db) library "database.dll" function int sqlite3exec(long db, string sql) library "database.dll" function string sqlite3errmsg16(long db) library "database.dll" function string sqlite3errmsg(long db) library "database.dll" function int sqlite3prepare16(long db,string sql,ref long pStmt) library "database.dll" function int sqlite3prepare(long db,string sql,ref long pStmt) library "database.dll" function int sqlite3step(long pStmt) library "database.dll" function int sqlite3finalize(long pStmt) library "database.dll" function string sqlite3column_text16(long pStmt,int iCol) library "database.dll" function string sqlite3column_text(long pStmt,int iCol) library "database.dll" function string sqlite3column_name16(long pStmt,int iCol) library "database.dll" function string sqlite3column_name(long pStmt,int iCol) library "database.dll" function longlong sqlite3last_insert_rowid(long db) library "database.dll" function int sqlite3changes(long db) library "database.dll" function int sqlite3data_count(long db) library "database.dll"function long UTF8ToAnsiString(string lpstring,ref string buff,long nBufflen ) library "database.dll"
示例代码
long ret ,db,recordstring value ; ret = sqlite3open ("e:\\test.db",db)if(db=0) then end if parent.title = string(db) ret = sqlite3prepare(db,"Select * From table where xh > 1 ",record) do while(sqlite3step(record) =100) value = sqlite3column_text(record,5) loop string Fieldname;int iDataCount =0 ; iDataCount = sqlite3data_count(record) sqlite3finalize(record); sqlite3close (db)
我的文件备份下载 database.dll
0 0
- powerbuilder 与sqlite3数据库
- SQlite3数据库的安装与使用
- PowerBuilder数据库配置方法
- PowerBuilder数据库配置方法
- 数据库powerbuilder使用
- PowerBuilder怎样连接数据库
- PowerBuilder连接数据库
- powerbuilder建数据库
- sqlite3数据库
- SQLite3数据库
- sqlite3 数据库
- SQLite3数据库
- 数据库sqlite3
- Sqlite3数据库
- sqlite3数据库
- Sqlite3数据库
- Sqlite3数据库
- ADO.net与PowerBuilder
- hihoCoder_#1066_无间道之并查集
- nefu989考试安排
- 常用STL总结
- phpize报错:Cannot find config.m4
- 曾经知乎里的提问
- powerbuilder 与sqlite3数据库
- Windows Azure 故障转移模式及高可用个模式探讨!
- nefu993计数问题
- 简单的调试错误,修改方式。
- 嵌入式开发学的东西还不是一般的多
- 掌上快递 APP 项目之概述篇
- QSharedMemory: how to use
- 关于STM32外部中断EXTI10-15,EXTI5-9共用一个中断向量处理方法
- 线程随笔