<sql:query var="executeQuery" dataSource="${datasource}">
    select title,ishomeshow from research where title="你最希是哪类的品牌?" group by title
</sql:query>
加个?就不行了,可不可转意啊?请指教,谢谢!!

解决方案 »

  1.   

    "?"在mysql里能不能进行转意??,请各位大侠指教!谢谢!!!
      

  2.   

    加了问号之后就出现了这样的错误提示:select title,ishomeshow from research where title="&Auml;&atilde;×&icirc;&Iuml;&pound;&Ecirc;&Ccedil;&Auml;&Auml;&Agrave;à&micro;&Auml;&AElig;·&Aring;&AElig;?" group by title,出现了乱码,请高手救急啊,小弟万分感激!!!
      

  3.   

    直接输入?,mysql自己认识,这个是你使用的框架的问题吧,把sql打印一下,看看框架是否进行修改了。
      

  4.   

    <%out.print("select title,ishomeshow from research where title="+request.getParameter("title")+"  group by title");%>,
    <%out.print("select title,ishomeshow from research where title='你最希是哪类的品牌?'  group by title");%>这两条语句在页面都可以输的出来
      

  5.   

    title后面是出来这样的乱码:"&Auml;&atilde;×&icirc;&Iuml;&pound;&Ecirc;&Ccedil;&Auml;&Auml;&Agrave;à&micro;&Auml;&AElig;·&Aring;&AElig;?"