vc++下使用odbc对sql server查询后,查询结果怎么输出?
CDatabasedb;db.Open(_T("xiu"));CRecordsetm_rs(&db);CStringstr="";str="SELECT*FROMStud...
CDatabase db;
db.Open(_T("xiu"));
CRecordset m_rs(&db);
CString str="";
str = "SELECT * FROM Students" ;
m_rs.Open(CRecordset::forwardOnly, str, CRecordset::readOnly);
之后查询结果如何输出啊? 展开
db.Open(_T("xiu"));
CRecordset m_rs(&db);
CString str="";
str = "SELECT * FROM Students" ;
m_rs.Open(CRecordset::forwardOnly, str, CRecordset::readOnly);
之后查询结果如何输出啊? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询