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