在access中添加的一列,为什么有错?
bstrSQL2.Format(_T("alter table %s add Idd int"),tabString[0]);
m_pConnection-> Execute ((_bstr_t)bstrSQL2,&RecordsAffected,adCmdText);
tabString[0],得到了正确的参数。
c++中执行
m_pConnection-> Execute ("alter table w3sky add Idd int",&RecordsAffected,adCmdText);也不能执行。并且确定pConnection已经链接上。
bstrSQL2.Format(_T("alter table %s add Idd int"),tabString[0]);
m_pConnection-> Execute ((_bstr_t)bstrSQL2,&RecordsAffected,adCmdText);
tabString[0],得到了正确的参数。
c++中执行
m_pConnection-> Execute ("alter table w3sky add Idd int",&RecordsAffected,adCmdText);也不能执行。并且确定pConnection已经链接上。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货