String hql="from com.model.Question q where q.askQuestionid 为空 and q.questionResponseId 为空 limit 0,2";

解决方案 »

  1.   

    MySQL 怎么跑到这里来了?.. Oracle里是is null
      

  2.   

    晕啊 oracle 我知道呢  刚朋友问我mysql 压根儿没用过mysql
      

  3.   

    mysql:select * from tb where user is null
      

  4.   

    from com.model.Question q where q.askQuestionid is null and q.questionResponseId is null limit 0,2
      

  5.   


    啊?我朋友就是这样写的啊 他说这个sql语句有错呀 我机子上没装mysql 所以不知道对了没有
      

  6.   


    啊?我朋友就是这样写的啊 他说这个sql语句有错呀 我机子上没装mysql 所以不知道对了没有
      

  7.   


    晕 刚朋友说是环境问题  之前说sql语句问题 害的我找了半天错误 找不到 嘿嘿 谢谢啦