mfc的SQL语句
CStringsqlStr_findid;sqlStr_findid="SELECT*FROMtb_subjectWHEREtb_subject.code='"+m_su...
CString sqlStr_findid;
sqlStr_findid="SELECT * FROM tb_subject WHERE tb_subject.code ='"+m_subjectid+"'";
'"+m_subjectid+"'是什么意思? 展开
sqlStr_findid="SELECT * FROM tb_subject WHERE tb_subject.code ='"+m_subjectid+"'";
'"+m_subjectid+"'是什么意思? 展开
1个回答
推荐于2016-10-27
展开全部
把连接字符串连接起来 ,假设你ID是:ID001,那么就相当于就是 'ID00'
也可以这么写:
sqlStr_findid.Format("SELECT * FROM tb_subject WHERE tb_subject.code ='%s'",m_subjectid);
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询