recordsetPtr的open方法 什么时候会一次返回所有记录到内存?
经常出现异常,错误消息为 对象已经使用 是怎么回事啊?
经常出现异常,错误消息为 对象已经使用 是怎么回事啊?
解决方案 »
- MySQL怎么使用select查询远程数据库表
- 求高手帮忙mysql 1064错误,小弟感激不尽!
- 如和利用SQLyog设置数据库的字符集???十万火急 在线等!!!!
- access for user root@localhost using password: yes
- MYSQL数据库存文本问题
- 请教使用like模糊查询时,查询字串含有通配符(比如%),怎么处理?
- Mysql中tuncate中一个奇怪的问题
- 怎莫用MySQL-Front导出表结构
- 第一次用mySql,傻鸟问题求救
- 升级到3.23.51后的错误提示!
- xampp 用phpmyadmin在页面上修改密码后,无法登陆,密码没问题
- 在my.ini设置sql_mode=STRICT_TRANS_TABLES,在sqlyog为什么显示mode是空的
pRs->Open("SELECT * FROM Employee ORDER BY lname",
"dsn=pubs;uid=sa;pwd=;",
adOpenStatic, adLockOptimistic, adCmdText);
TESTHR(picRs->BindToRecordset(&rs)); while (!pRs->EndOfFile)
{
// Process data in the CCustomRs C++ instance variables.
printf("Name = %s %s\n",
(rs.m_ul_fnameStatus == adFldOK ? rs.m_ch_fname: "<Error>"),
(rs.m_ul_lnameStatus == adFldOK ? rs.m_ch_lname: "<Error>")); // Move to the next row of the Recordset.
// Fields in the new row will automatically be
// placed in the CCustomRs C++ instance variables.
pRs->MoveNext();
}
if (pRstEmployee->State == adStateOpen)
pRstEmployee->Close();
if (pConnection)
if (pConnection->State == adStateOpen)
pConnection->Close();