请问模糊查询时又有格式化数据要怎么写
strSql.Format("select * from class1 where stu_name like '%/%s%' escape '/'",m_name)
为何出错
strSql.Format("select * from class1 where stu_name like '%/%s%' escape '/'",m_name)
为何出错
解决方案 »
- 背景建模提取目标
- CreateProcess执行失败
- 跪求高手帮助!~~~~图像处理的问题
- 如何让程序带上进度等待条?
- 菜问题:子进程结束后,主线程及个副线程句柄关闭的问题
- 看看这个错误,居然说afxloadlibrary没定义!!!
- 在程序的DEBUG模式下运行输出对吗?
- 初学VC,键入一MFC程序出现:msvcrtd.lib(crtexe.obj) : error LNK2001: unresolved external symbol _main为何?
- 全屏显示问题
- 一个简单,但不知道怎么问的问题!!!
- VS2005 MFC 开发COM 遇到的问题,高手请进.
- 转贴:对Win8的WinRT环境的一些个人探索,WinRT仍基于Win32
先用别的符号代替%,然后再用CString::replace替换一下就可以了。
strSql.Format("select * from class1 where stu_name like '|/%s|' escape '/'",m_name)
先用别的符号代替%,然后再用CString::replace替换一下就可以了。