字符串的语法错误 在查询表达式 'newstypeid<>'0' and instr(newstitle,'讯讯讯讯?)>0 order by createtime desc' 中。

sprc_lcl 2005-05-04 08:27:10
string bindstrwhere = "讯";
string sqlstr = "select * from aa_table where instr(newstitle,'"+bindstrwhere+"')>0

为什么bindstrwhere 为单数汉字时会报数,不认了,双数就没关系。
...全文
83 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
rouqu 2005-05-07
  • 打赏
  • 举报
回复
你的newstitle也是变量吗? 字符串合并用&(Jet)而不是+(SQL89/92)

7,732

社区成员

发帖
与我相关
我的任务
社区描述
Microsoft Office Access是由微软发布的关系数据库管理系统。它结合了 MicrosoftJet Database Engine 和 图形用户界面两项特点。
社区管理员
  • Access
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧