CString strSQL=_T("");
strSQL.Format("select a.DISC,c.DISC,a.GWTID from Pob_Point a,Pob_Rtu b,Pob_Substation c\
where a.PointID = %d and a.RTUID=b.RTUID and b.OwnerID=c.SubStationID",m_PointID);

if (!m_db.IsOpen())
{
//m_db.OpenEx(_T("DSN=ora80;UID=mjg;PWD=583735704"),CDatabase::openReadOnly | CDatabase::noOdbcDialog);
CString strConnect;
strConnect.Format("DSN=%s;UID=%s;PWD=%s",m_ServerName,m_UserName,m_PassWord);
m_db.OpenEx(strConnect,0);
}
m_pCommonRS= new CCommonRS(&m_db);
if(m_pCommonRS->IsOpen()) 
m_pCommonRS->Close();
m_pCommonRS->Open(CRecordset::dynaset, strSQL);
以上是我打开数据源和记录集的代码,应该是以读写的方式打开的啊,为什么我还是无法修改记录集中呢??(调用CanUpdate()返回0)
还有个问题就是我派生出CRecordset的子类CCommonRS时只绑定了POB_point表,那我怎么修改记录集中POB_RTU表和POB_SUBSTATION表中字段的值呢,这两个表没绑定变量无法通过成员变量修改啊。。