如上图所示,我打算做一个查询:在查询途观(博越和昂科威也一样)适用的螺栓时,适用车型为“all”的螺栓也能够查询出来。
这个查询应该怎么做?
具体应该怎么做呢?我是刚刚接触access。
_bstr_t sql((CString)"SELECT [stdID],[stdName],[stdNo],[stdSex] FROM [students] where stdName" + strName + " and stdNo" + strNo + " and stdSex" + strSex);
theApp.pRecordset->Open(sql,theApp.pConnection.GetInterfacePtr(), adOpenDynamic, adLockBatchOptimistic, adCmdText);
把里面的名字改一下就行,前面的应该不用说吧