请教各位高手: int num;
m_pRecordset.CreateInstance(__uuidof(Recordset));
CString strSql;
strSql.Format("select count(*) form xxx where id=1 );
BSTR bstrSQL=strSql.AllocSysString();
m_pRecordset->Open(bstrSQL,(IDispatch *)m_pConnection,adOpenStatic,adLockOptimistic,adCmdText);
现在想把查询到的数赋给变量 num,请问这个怎么实现啊?
m_pRecordset.CreateInstance(__uuidof(Recordset));
CString strSql;
strSql.Format("select count(*) form xxx where id=1 );
BSTR bstrSQL=strSql.AllocSysString();
m_pRecordset->Open(bstrSQL,(IDispatch *)m_pConnection,adOpenStatic,adLockOptimistic,adCmdText);
现在想把查询到的数赋给变量 num,请问这个怎么实现啊?
解决方案 »
- mysql存储过程转为oracle存储过程
- 请问是新建数据库还是新建用户方案
- 关于oracle过程参数的问题
- 关于oracle数据库配置的问题
- 求在ORACLE9i下查询树的叶子结点的SQL语句.在线等(......................................)
- 程序中调用这个存储过程 ,要传进去 prmdormcode 等于 类似 "3,5,7,9"一组楼号集合字串,怎么办?
- oracel触发器,每隔一天触发一次?谁有示例?急用.
- 【牧师】推荐: 常用的查看数据库的对象的语句(如:表空间,库对象...)
- 存储过程被锁定了:(
- 怎样在oracle中,检测写的存储过程是否正确?
- oracle的gruppo by 问题
- 大家看一下~关于where 字段in(v1,v2,v3,v4...) 的执行顺问题
m_pRecordset->Open(bstrSQL,(IDispatch *)m_pConnection,adOpenStatic,adLockOptimistic,adCmdText);num= m_pRecordset->GetCollect("STATUS");这里这个STATUS是你的字段名