MFC执行MySQL函数时提示警告
MFC执行MySQL函数时提示警告,d:\agent\_work\1\s\src\vctools\VC7Libs\Ship\ATLMFC\Src\MFC\dbcore.cpp(2843) : AppMsg - Warning: Missing ' FROM ', recordset not updatable
代码:
CString strsql;
strsql.Format(L"select funSetTray( %i, %i );", getPointID(), nTray); // %s中不能有单引号 // ?? 多次调用数据库
CString strResult;
HRecordset(theApp.getDatabase()).GetSingle(strsql, strResult); //?? 数据库操作异常
请问如何解决,谢谢