CString strSQL;
strSQL.Format("select * from aaa where bb like '%%s%'", "a");
以上语句我期望
strSQL = select * from aaa where bb like '%a%'但是好像Format不支持“%”,我使用“\”做转义字符也不起作用请问如何才能在Format中使用%
strSQL.Format("select * from aaa where bb like '%%s%'", "a");
以上语句我期望
strSQL = select * from aaa where bb like '%a%'但是好像Format不支持“%”,我使用“\”做转义字符也不起作用请问如何才能在Format中使用%
or
strSQL.Format("select * from aaa where bb like '/%%s%'", "a");
strSQL=strSQL+"%'"+a+"%"试试看