读取int32数据 - GetInt32
函数简介
根据列索引读取int32类型的数据。
接口名称
GetInt32
DLL调用
int GetInt32(long ola, long stmt, int columnIndex);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| ola | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| stmt | 长整数型 | 数据库语句对象指针,由 ExecuteReader 接口返回。 |
| columnIndex | 整数型 | 列索引,从0开始。 |
示例
// 读取第一列的int32数据
int id = GetInt32(ola, stmt, 0);
返回值
对应列的整数型数据值。
