请问这是什么意思?

解决方案 »

  1.   

    在sql语句里面没有'id',是不是因该加上表名.id?
      

  2.   

    查询sql语句中写清楚select xxx,yyy from ttt;
    读取ResultSet时按照xxx,yyy顺序读取,不要颠倒顺序
      

  3.   

    查询sql语句中写清楚select xxx,yyy from ttt;
    读取ResultSet时按照xxx,yyy顺序读取,不要颠倒顺序
      

  4.   

    大家看到了,我的库里有那个id字段
    String condition2="select * from message";
    if(key!=null&&key.length()>0)
    condition2=condition2+"where name like '%"+key+"%' or content like '%"+key+"%' or recondent like '%"+key+"%'";
    condition2=condition+" order by id DESC";
    rs=stmt.executeQuery(condition2);
      

  5.   

    我在doc模式下就能正常执行这个语句,怎么回事呢?
      

  6.   

    condition2=condition+"   order   by   id   DESC"; 
    这里面condition是啥玩意?明显不对啊
    你自己在这句后面把condition2打出来看看SQL应该就知道是哪错了
      

  7.   

    MYECLIPSE 没有报错,但是执行的时候出错,就是运行WEB的时候出错,在SQL下执行也没有出错
    大家看下rs=stmt.executeQuery(condition2);这运行不了是什么情况
      

  8.   

    org.hibernate.exception.SQLGrammarException: could not execute query
    Caused by: java.sql.SQLException: Unknown column 'employee0_.userId' in 'field list'
    这种错误是什么原因造成的