关于sql字符串的问题
bnm77 2012-12-24 11:21:29 m_pRecordset->Open("SELECT * FROM datadb where No>'12345'",
m_pConnection.GetInterfacePtr(),
adOpenStatic,
adLockOptimistic,
adCmdText);
如何用一个字符串变量代替"SELECT * FROM datadb where No>'12345'"。
譬如:
Cstring Str="SELECT * FROM datadb where No>'12345'";
m_pRecordset->Open(Str,
m_pConnection.GetInterfacePtr(),
adOpenStatic,
adLockOptimistic,
adCmdText);