theApp.m_strSQL="INSERT INTO phonegroup (groupname,groupid,miaoshu,countgroup) 、
values('"+m_groupname+"','"+m_groupid+"','"+m_groupmiaoshu+"','"+m_groupcount+"')";
其中groupname,miaoshu为文本格式,groupid和countgroup为数值类型,编译通过了,但运行到这行代码的时候说类型不对,请问该怎么写呀?我以下这句就能成功执行
theApp.m_strSQL="update phonegroup set groupname='"+m_groupname+
"',miaoshu='"+m_groupmiaoshu+
"',countgroup='"+m_groupcount+
"' where groupid="+m_groupid;
郁闷哈
values('"+m_groupname+"','"+m_groupid+"','"+m_groupmiaoshu+"','"+m_groupcount+"')";
其中groupname,miaoshu为文本格式,groupid和countgroup为数值类型,编译通过了,但运行到这行代码的时候说类型不对,请问该怎么写呀?我以下这句就能成功执行
theApp.m_strSQL="update phonegroup set groupname='"+m_groupname+
"',miaoshu='"+m_groupmiaoshu+
"',countgroup='"+m_groupcount+
"' where groupid="+m_groupid;
郁闷哈
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货