CSting a
a="select * from CNWG,CNZL,ER,GL,HKWG,HKZL,KR,JP,USWG,USZL where (CNWG.PN='1000454' OR CNZL.PN='1000454' OR ER.PN='1000454' OR GL.PN='1000454' OR HKWG.PN='1000454' OR HKZL.PN='1000454' OR KR.PN='1000454' OR JP.PN='1000454' OR USWG.PN='1000454' OR USZL.PN='1000454')";
在debug中看到,a的最后几位被截去。如果我的串超过这个长度,怎样赋值?
我用这个串创建的sql打开ado
theApp.m_pRecordsetQuery->Open(
_bstr_t(a),                
adOpenStatic,
adLockOptimistic,
adCmdText);