ado的connection.Execute () 中RecordsAffected 怎么用??
w_j76 2001-10-12 09:38:03 ado的connection.Execute () 中RecordsAffected 怎么用?
msdn 说long 型 但是 程序中是VARIANT才对,怎么用
我是想得到execute()起作用的行数
#define CREATEINSTANCE(sp,riid) { HRESULT _hr = sp.CreateInstance( __uuidof( riid ) ); if (FAILED(_hr)) _com_issue_error(_hr); }
_ConnectionPtr m_piConnection;
CREATEINSTANCE(m_piConnection, Connection);
VARIANT lRecordsAffected;
m_piConnection->Execute(deletesql,lRecordsAffected,adCmdText);