pCmd->CommandText="insert into userftprequest(filename,telnoid,telno,indatetime,productid,dealdatetime,activedatetime,canceldatetime,doflag) values( '"+file_name+"','"+telnoid+"','"+telno+"',todate('"+indatetime+"','YYYY-MM-DD HH24:MI:SS'),'"+productid+"',todate('"+dealdatetime+"','YYYY-MM-DD HH24:MI:SS'),todate('"+activedatetime+"','YYYY-MM-DD HH24:MI:SS'), todate('"+canceldatetime+"','YYYY-MM-DD HH24:MI:SS'),'"+doflag+"')";
这里报错
error C2678: 二进制“+” : 没有找到接受“std::basic_string<_Elem,_Traits,_Ax>”类型的左操作数的运算符(或没有可接受的转换
这里报错
error C2678: 二进制“+” : 没有找到接受“std::basic_string<_Elem,_Traits,_Ax>”类型的左操作数的运算符(或没有可接受的转换
values( '"+file_name+"','"+telnoid+"','"+telno+"',
todate('"+indatetime+"','YYYY-MM-DD HH24:MI:SS'),
'"+productid+"',todate('"+dealdatetime+"','YYYY-MM-DD HH24:MI:SS'),
todate('"+activedatetime+"','YYYY-MM-DD HH24:MI:SS'),
todate('"+canceldatetime+"','YYYY-MM-DD HH24:MI:SS'),'"+doflag+"')";
这不会很乱吧
帮忙看下了 谢谢