strprovince是一個公共的CString變數,從combox中取值
CString strmysql;
strmysql.Format(_T("select distinct city from dbo.pcc where province = '%s'"), strprovince);
AfxMessageBox(strmysql);
為什么不能把strprovince賦值到strsql中,試了10多種方法都不行?
求指教,謝謝!
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/247417.html
標籤:數據庫
上一篇:沒有引數串列匹配的多載函式
