uint64_toid,uint8_tlistfmt){uint32_tpage = sqlite3_column_int(stmt,0);uint32_tnumber = sqlite3_column_int(stmt,1);uint16_tlen = sqlite3_column_bytes(stmt,2);constvoid*val =sqlite3_column_blob(stmt,2);if(listfmt == RTRVD_SET_ATTR_LIST) {returnle_pack_attr(buf, buflen, page...
当然,想获的这个字段整个长度,可以用:intnDataLen = sqlite3_column_bytes(pStmt, nClun); 要记的释放sqlite3_stmt * ptr;定义的指针; 对于sqlite3_column_text()其返回的也是一个void * ,要读取其内容要先转为(char*)sqlite3_column_text();然后就可以直接给string类型,这里转换为char*,是让这个char指针...