String hql ="from Model as c where = c.sid = '"+sid+"' "这个拼错了。 where后面的=  是什么情况

解决方案 »

  1.   

    SQL写错了嗯。当然就通不过了。
      

  2.   


     String hql ="from Model as c where = c.sid = '"+sid+"' ";
    改成
     String hql ="from Model as c where c.sid = '"+sid+"' ";
      

  3.   

    HTTP Status 500 - unexpected token: = near line 1, column 33 [from Model.as c where = c.sid = '5' ]; 
    很明显啊 哥们  where后面多个等号哎