4,011
社区成员
发帖
与我相关
我的任务
分享
_variant_t vtEffect;
m_DBCnt->Execute("update....",&vtEffect,adCmdText);
if (vtEffect.lval > 0)
m_DBCnt->Execute("insert into...",NULL,adCmdText);
try
{
m_DBCnt->Execute(“update....", NULL, adCmdText))
}
catch(_comm_error e)
{
if(e.wcode == ??) //忘了是多少了,试试就知道了
{
m_DBCnt->Execute(“insert into ....", NULL, adCmdText)
}
}