c++ builder 中如何使用zeos 遍历本地sqlite文件数据库中所有信息,获得所有的表的名称也可以啊

[复制链接]
查看11 | 回复1 | 2013-12-9 12:12:09 | 显示全部楼层 |阅读模式
获取表名也就是获得Ztable的TableName。没有多少分。。。

回复

使用道具 举报

千问 | 2013-12-9 12:12:09 | 显示全部楼层
//执行查询表名的语句char *strSql = "select name from sqlite_master where type='table' order by name";sqlite3_exec(db,strSql,callback,NULL,NULL);//回调函数int callback(void* ,int nCount,char** pValue,char** pName){
string s;
for(int i=0;i<nCount;i++)
{
s+=pName;
s+=":";
s+=pValue;
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则