我是这样写的:
CString strSQL;
strSQL.Format("SELECT * FROM S_Item_Code_Componet WHERE Position_Name LIKE '%s' AND '%s' is not null" ,strAssembly_pos,strAssembly_type); strSQL.Format("SE
CString strSQL;
strSQL.Format("SELECT * FROM S_Item_Code_Componet WHERE Position_Name LIKE '%s' AND '%s' is not null" ,strAssembly_pos,strAssembly_type); strSQL.Format("SE